projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3886de9
)
memstick: move dev_dbg
author
Jiri Slaby
<
[email protected]
>
Wed, 23 Sep 2009 22:57:31 +0000
(15:57 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 24 Sep 2009 14:21:05 +0000
(07:21 -0700)
id_reg.if_mode might be unitialized when (*mrq)->error is nonzero. move
dev_dbg() inside the if so that we are sure we can use id_reg values.
Signed-off-by: Jiri Slaby <
[email protected]
>
Cc: Alex Dubov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/memstick/core/memstick.c
patch
|
blob
|
history
diff --git
a/drivers/memstick/core/memstick.c
b/drivers/memstick/core/memstick.c
index a5b448ea4eab54372a2263688cf04d2243775356..b3bf1c44d74d92c67452b96e89cf4d9741d68d4f 100644
(file)
--- a/
drivers/memstick/core/memstick.c
+++ b/
drivers/memstick/core/memstick.c
@@
-339,9
+339,9
@@
static int h_memstick_read_dev_id(struct memstick_dev *card,
card->id.type = id_reg.type;
card->id.category = id_reg.category;
card->id.class = id_reg.class;
+ dev_dbg(&card->dev, "if_mode = %02x\n", id_reg.if_mode);
}
complete(&card->mrq_complete);
- dev_dbg(&card->dev, "if_mode = %02x\n", id_reg.if_mode);
return -EAGAIN;
}
}