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>
         * for chip specific state information.
         */
        indio_dev = iio_device_alloc(sizeof(*st));
-       if (indio_dev == NULL) {
+       if (!indio_dev) {
                ret = -ENOMEM;
                goto error_ret;
        }
 
        u16 *data;
 
        data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL);
-       if (data == NULL)
+       if (!data)
                goto done;
 
        if (!bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) {
 
        /* Allocate a buffer to use - here a kfifo */
        buffer = iio_kfifo_allocate();
-       if (buffer == NULL) {
+       if (!buffer) {
                ret = -ENOMEM;
                goto error_ret;
        }
                                                 "iio_simple_dummy_consumer%d",
                                                 indio_dev->id);
 
-       if (indio_dev->pollfunc == NULL) {
+       if (!indio_dev->pollfunc) {
                ret = -ENOMEM;
                goto error_free_buffer;
        }