Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d77972b8 authored by Ray Zhang's avatar Ray Zhang Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm: do not report error when data block is not present



There might be no data blocks in certain CTA extensions, so
avoid reporting error in these cases.

CRs-Fixed: 2291150
Change-Id: I8546c8c45d01d878e198604d6e9cebbc32fa7a0d
Signed-off-by: default avatarRay Zhang <rayz@codeaurora.org>
parent a8a6f1fc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -179,8 +179,9 @@ static const u8 *_sde_edid_find_block(const u8 *in_buf, u32 start_offset,
	 * * edid buffer 1, byte 2 being 0 means no non-DTD/DATA block
	 *   collection present and no DTD data present.
	 */

	if ((dbc_offset == 0) || (dbc_offset == 4)) {
		SDE_ERROR("EDID: no DTD or non-DTD data present\n");
		SDE_EDID_DEBUG("EDID: no DTD or non-DTD data present\n");
		return NULL;
	}