]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
NFC: Move the pn544_hci dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Sat, 8 Sep 2012 13:19:44 +0000 (21:19 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 24 Sep 2012 22:17:26 +0000 (00:17 +0200)
commitc51ad34e542606854d0545533329e916689599ba
treeb75b57bf14c63014d427fe790fbea134154893f9
parentd6650a2ccfdcf536841c2f880a1a6f19fce2e3a1
NFC: Move the pn544_hci 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: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/pn544_hci.c