staging: slicoss: Move NULL test closer to assignment
authorRehas Sachdeva <aquannie@gmail.com>
Wed, 21 Sep 2016 18:36:51 +0000 (00:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Sep 2016 09:54:48 +0000 (11:54 +0200)
commit7725066f1b4dd7fe69d85bf2a276f01d048cb967
tree72e8c46b6736513b3a409681685d84c0d9ca6b47
parent7d359a847cf65cafa3582ee0c52f68e629fe0547
staging: slicoss: Move NULL test closer to assignment

Move the test to check if a variable is NULL, to right after it is being
assigned, rather than some statements later.

Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c