]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedfbafb820919d524c5e6086834ef30294401f97
tree72e8c46b6736513b3a409681685d84c0d9ca6b47
parentb21210498cd791718babe80e9d2404c2a2da6b1b
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