projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd76127
)
staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZE
author
Aaro Koskinen
<aaro.koskinen@iki.fi>
Mon, 5 Dec 2011 22:10:32 +0000
(
00:10
+0200)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 8 Dec 2011 20:26:01 +0000
(12:26 -0800)
Use ARRAY_SIZE.
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/xgifb/vb_init.c
patch
|
blob
|
history
diff --git
a/drivers/staging/xgifb/vb_init.c
b/drivers/staging/xgifb/vb_init.c
index
c9b5285
..
a1caf3c
100644
(file)
--- a/
drivers/staging/xgifb/vb_init.c
+++ b/
drivers/staging/xgifb/vb_init.c
@@
-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,