projects
/
deliverable
/
linux.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
|
blame
|
history
diff --git
a/drivers/staging/xgifb/vb_init.c
b/drivers/staging/xgifb/vb_init.c
index c9b5285b7cbcf9c603f2e94686af8e67a5373209..a1caf3cf44cdd9270d383fb48f84384866909cf5 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,
This page took
0.025886 seconds
and
5
git commands to generate.