watchdog: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 10 Sep 2012 04:41:15 +0000 (12:41 +0800)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 10 Sep 2012 15:33:17 +0000 (17:33 +0200)
commitb232a70a1735c004f9ee6fdf363def527b9234b6
tree7c0ece61c982e452206d40fb2ffb8d22c22632ea
parent308b135e4fcc00c80c07e0e04e7afa8edf78583c
watchdog: 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>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/watchdog_core.c