git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
drivers
/
scsi
/
raid_class.c
diff --git
a/drivers/scsi/raid_class.c
b/drivers/scsi/raid_class.c
index
327b33a
..
50c398a
100644
(file)
--- a/
drivers/scsi/raid_class.c
+++ b/
drivers/scsi/raid_class.c
@@
-131,7
+131,7
@@
static const char *raid_state_name(enum raid_state state)
int i;
char *name = NULL;
int i;
char *name = NULL;
- for (i = 0; i <
ARRAY_SIZE(raid_states
); i++) {
+ for (i = 0; i <
sizeof(raid_states)/sizeof(raid_states[0]
); i++) {
if (raid_states[i].value == state) {
name = raid_states[i].name;
break;
if (raid_states[i].value == state) {
name = raid_states[i].name;
break;
@@
-161,7
+161,7
@@
static const char *raid_level_name(enum raid_level level)
int i;
char *name = NULL;
int i;
char *name = NULL;
- for (i = 0; i <
ARRAY_SIZE(raid_levels
); i++) {
+ for (i = 0; i <
sizeof(raid_levels)/sizeof(raid_levels[0]
); i++) {
if (raid_levels[i].value == level) {
name = raid_levels[i].name;
break;
if (raid_levels[i].value == level) {
name = raid_levels[i].name;
break;