Staging: fsl-mc: Use !x instead of x == NULL.
authorSandhya Bankar <bankarsandhya512@gmail.com>
Sat, 17 Sep 2016 23:37:21 +0000 (05:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:52:51 +0000 (13:52 +0200)
Use !x instead of x == NULL. This issue was found by checkpatch.

Signed-off-by: Sandhya Bankar <bankarsandhya512@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-msi.c

index cc19092..bc1ad1a 100644 (file)
@@ -50,7 +50,7 @@ static void fsl_mc_msi_update_dom_ops(struct msi_domain_info *info)
        /*
         * set_desc should not be set by the caller
         */
-       if (ops->set_desc == NULL)
+       if (!ops->set_desc)
                ops->set_desc = fsl_mc_msi_set_desc;
 }
 
@@ -140,7 +140,7 @@ static void fsl_mc_msi_update_chip_ops(struct msi_domain_info *info)
        /*
         * irq_write_msi_msg should not be set by the caller
         */
-       if (chip->irq_write_msi_msg == NULL)
+       if (!chip->irq_write_msi_msg)
                chip->irq_write_msi_msg = fsl_mc_msi_write_msg;
 }