projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'from-linus' into upstream
[cascardo/linux.git]
/
drivers
/
char
/
hvsi.c
diff --git
a/drivers/char/hvsi.c
b/drivers/char/hvsi.c
index
a22aa94
..
a952218
100644
(file)
--- a/
drivers/char/hvsi.c
+++ b/
drivers/char/hvsi.c
@@
-197,7
+197,7
@@
static inline void print_state(struct hvsi_struct *hp)
};
const char *name = state_names[hp->state];
- if (hp->state >
(sizeof(state_names)/sizeof(char*)
))
+ if (hp->state >
ARRAY_SIZE(state_names
))
name = "UNKNOWN";
pr_debug("hvsi%i: state = %s\n", hp->index, name);