[PATCH] SPI: at25: do not use pointer before assignment
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Fri, 16 Mar 2007 21:38:20 +0000 (13:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 17 Mar 2007 02:25:05 +0000 (19:25 -0700)
commitc6ca97d26a7efe9488174336bc67fdaea01aad49
tree1d7febebda821527e7463a24ff49a1a1f7c97440
parent13788ccc41ceea5893f9c747c59bc0b28f2416c2
[PATCH] SPI: at25: do not use pointer before assignment

Prevents a potential oops with CONFIG_SPI_DEBUG given flakey hardware or
incorrect configuration.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/spi/at25.c