Commit b0256cdc authored by Shobhit Kumar's avatar Shobhit Kumar Committed by Daniel Vetter

drm/i915: Code cleanup patch to fix checkpatch errors

This cleans up the checkpatch errors for the merged commit -

commit d3b542fc
Author: Shobhit Kumar <shobhit.kumar@intel.com>
Date:   Mon Apr 14 11:00:34 2014 +0530

    drm/i915: Add parsing support for new MIPI blocks in VBT
Signed-off-by: default avatarShobhit Kumar <shobhit.kumar@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 4d43e9bd
......@@ -643,13 +643,15 @@ static u8 *goto_next_sequence(u8 *data, int *size)
* skip by this element payload size
* skip elem id, command flag and data type
*/
if ((tmp = tmp - 5) < 0)
tmp -= 5;
if (tmp < 0)
return NULL;
data += 3;
len = *((u16 *)data);
if ((tmp = tmp - len) < 0)
tmp -= len;
if (tmp < 0)
return NULL;
/* skip by len */
......@@ -657,13 +659,15 @@ static u8 *goto_next_sequence(u8 *data, int *size)
break;
case MIPI_SEQ_ELEM_DELAY:
/* skip by elem id, and delay is 4 bytes */
if ((tmp = tmp - 5) < 0)
tmp -= 5;
if (tmp < 0)
return NULL;
data += 5;
break;
case MIPI_SEQ_ELEM_GPIO:
if ((tmp = tmp - 3) < 0)
tmp -= 3;
if (tmp < 0)
return NULL;
data += 3;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment