memstick: move dev_dbg
authorJiri Slaby <jirislaby@gmail.com>
Wed, 23 Sep 2009 22:57:31 +0000 (15:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Sep 2009 14:21:05 +0000 (07:21 -0700)
commitb873c2f34ecd4a5a69b41b852cbc365694541c5f
tree01daaa2aadfa8e88206129ee13d363d009df5a51
parent3886de938cc23d5208a34064d8363d6d7b54b461
memstick: move dev_dbg

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 <jirislaby@gmail.com>
Cc: Alex Dubov <oakad@yahoo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/memstick/core/memstick.c