summaryrefslogtreecommitdiffstats
path: root/drivers/staging/fsl-mc
diff options
context:
space:
mode:
authorSandhya Bankar <bankarsandhya512@gmail.com>2016-09-18 05:07:21 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-20 13:52:51 +0200
commit905a672a2f97755c3d7787a125cda100096c999d (patch)
tree13f8baf7ccae4acab985ad47ec9f6638c19196a9 /drivers/staging/fsl-mc
parent24586a35d3edfed3217fec3597861d52eb6d5814 (diff)
downloadblackbird-op-linux-905a672a2f97755c3d7787a125cda100096c999d.tar.gz
blackbird-op-linux-905a672a2f97755c3d7787a125cda100096c999d.zip
Staging: fsl-mc: Use !x instead of x == NULL.
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>
Diffstat (limited to 'drivers/staging/fsl-mc')
-rw-r--r--drivers/staging/fsl-mc/bus/fsl-mc-msi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c
index cc190924deed..bc1ad1a85e85 100644
--- a/drivers/staging/fsl-mc/bus/fsl-mc-msi.c
+++ b/drivers/staging/fsl-mc/bus/fsl-mc-msi.c
@@ -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;
}
OpenPOWER on IntegriCloud