]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memstick: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 28 Feb 2013 01:05:46 +0000 (17:05 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Feb 2013 03:10:23 +0000 (19:10 -0800)
commit940da353a83e895ea600cb8ab17dceefb1bcb469
tree233e9a0879f7c5b193ceb5dd32b92162c7ea8866
parent507063b2a435b24951bce8e1f67ab65cda490f1b
memstick: move the dereference below the NULL test

The dereference should be moved below the NULL test.

spatch with a semantic match is used to found this.
(http://coccinelle.lip6.fr/)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/memstick/host/r592.c