Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 198280
b: refs/heads/master
c: 08a82c6
h: refs/heads/master
v: v3
  • Loading branch information
Phil Carmody authored and Linus Torvalds committed May 25, 2010
1 parent 04935ab commit 1f7e93d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4be929be34f9bdeffa40d815d32d7d60d2c7f03b
refs/heads/master: 08a82c6872ac1d37cb993a52f1b35f97f48295bd
6 changes: 2 additions & 4 deletions trunk/drivers/char/hvsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,8 @@ static inline void print_state(struct hvsi_struct *hp)
"HVSI_WAIT_FOR_MCTRL_RESPONSE",
"HVSI_FSP_DIED",
};
const char *name = state_names[hp->state];

if (hp->state > ARRAY_SIZE(state_names))
name = "UNKNOWN";
const char *name = (hp->state < ARRAY_SIZE(state_names))
? state_names[hp->state] : "UNKNOWN";

pr_debug("hvsi%i: state = %s\n", hp->index, name);
#endif /* DEBUG */
Expand Down

0 comments on commit 1f7e93d

Please sign in to comment.