Commit b4423a3d authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher
Browse files

drm/amd/display: fix the coding style issue of integrated_info



Follow the coding style of size of a struct, changing to:

p = kmalloc(sizeof(*p), ...);

Signed-off-by: default avatarHuang Rui <ray.huang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b3de22cb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1380,7 +1380,7 @@ static bool dc_link_construct(struct dc_link *link,

	DC_LOGGER_INIT(dc_ctx->logger);

	info = kzalloc(sizeof(struct integrated_info), GFP_KERNEL);
	info = kzalloc(sizeof(*info), GFP_KERNEL);
	if (!info)
		goto create_fail;

@@ -1545,7 +1545,7 @@ static bool dc_link_construct(struct dc_link *link,
	}

	if (bios->integrated_info)
		memcpy(info, bios->integrated_info, sizeof(struct integrated_info));
		memcpy(info, bios->integrated_info, sizeof(*info));

	/* Look for channel mapping corresponding to connector and device tag */
	for (i = 0; i < MAX_NUMBER_OF_EXT_DISPLAY_PATH; i++) {