]> git.baikalelectronics.ru Git - kernel.git/commit
hwspinlock/core: move the dereference below the NULL test
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 10 Sep 2012 04:52:02 +0000 (12:52 +0800)
committerOhad Ben-Cohen <ohad@wizery.com>
Mon, 10 Sep 2012 10:19:25 +0000 (13:19 +0300)
commit7ab8dcee1edd18ff5edc9ab9291e677ff2237b34
tree5f2ddc609cdd1e54c59f638af6a3f890aa81da0d
parent5e6ee0c4464c6acbcfa0e5584b89bf0d6bce54a1
hwspinlock/core: 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: Ohad Ben-Cohen <ohad@wizery.com>
drivers/hwspinlock/hwspinlock_core.c