configfs: move the dereference below the NULL test
authorWei Yongjun <[email protected]>
Fri, 22 Feb 2013 00:42:43 +0000 (16:42 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:19 +0000 (17:22 -0800)
commit49deb4bc227cb9db5b8ebf9434367f8bed057c7a
treecda54ac20921d7b5145efcc0ca7021d62ef9dc66
parent1b2643f0d09381ad504123809ff587bf6ab0ec7d
configfs: 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 <[email protected]>
Cc: Joel Becker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/configfs/dir.c