Staging: most: mostcore/core.c. Fix "Using plain integer as NULL pointer" warnings
authorAdrian Remonda <adrianremonda@gmail.com>
Fri, 14 Aug 2015 10:18:01 +0000 (12:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 00:34:42 +0000 (17:34 -0700)
commit04ca58372c5e4922d7463450ffdb5cdc3d0dd596
tree8ad655b2fdd7b57906b825de6fdb275cb7abc837
parentc942ea7a377edfde7a154f2edd8fde7cfea24de1
Staging: most: mostcore/core.c. Fix "Using plain integer as NULL pointer" warnings

This patch fixes the warning generated by sparse: "Using plain integer
as NULL pointer" by replacing the pointer test against 0 with a logical test.

Signed-off-by: Adrian Remonda <adrianremonda@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c