]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: iio: iio_simple_dummy: Remove explicit NULL comparison
authorCristina Opriceana <cristina.opriceana@gmail.com>
Tue, 31 Mar 2015 09:51:38 +0000 (12:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2015 15:23:20 +0000 (17:23 +0200)
commit8f94c31feeba8b872ed18d075b57de5d04575d05
tree3b580147f55f887199b370389502ca1b22b314c8
parent025c7da9eeba3a6c77ef9485a4c1c1a797dd7a4e
Staging: iio: iio_simple_dummy: Remove explicit NULL comparison

This patch removes explicit NULL comparison and writes it in its
simpler form. Done with coccinelle:

@replace_rule@
expression e;
@@

-e == NULL
+ !e

Signed-off-by: Cristina Opriceana <cristina.opriceana@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/iio_simple_dummy.c
drivers/staging/iio/iio_simple_dummy_buffer.c