Skip to content

Commit

Permalink
staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZE
Browse files Browse the repository at this point in the history
Use ARRAY_SIZE.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Aaro Koskinen authored and Greg Kroah-Hartman committed Dec 8, 2011
1 parent bd76127 commit 83fae39
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/xgifb/vb_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,7 @@ static void ReadVBIOSTablData(unsigned char ChipType,
i += 25;
j--;
k++;
} while ((j > 0) &&
(k < (sizeof(XGI21_LCDCapList) /
sizeof(struct XGI21_LVDSCapStruct))));
} while (j > 0 && k < ARRAY_SIZE(XGI21_LCDCapList));
}

static void XGINew_ChkSenseStatus(struct xgi_hw_device_info *HwDeviceExtension,
Expand Down

0 comments on commit 83fae39

Please sign in to comment.