aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/kpc2000/kpc_dma
diff options
context:
space:
mode:
authorSimon Sandström <simon@nikanor.nu>2019-07-04 08:08:11 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-04 10:40:44 +0200
commit5d1532482943403eb11911898565628fa45863d7 (patch)
treef0ac3b744daad0e0429a1ce58b2245f554f614e7 /drivers/staging/kpc2000/kpc_dma
parentstaging: kpc2000: simplify comparison to NULL in dma.c (diff)
downloadlinux-dev-5d1532482943403eb11911898565628fa45863d7.tar.xz
linux-dev-5d1532482943403eb11911898565628fa45863d7.zip
staging: kpc2000: simplify comparison to NULL in fileops.c
Fixes checkpatch warning "Comparison to NULL could be written [...]". Signed-off-by: Simon Sandström <simon@nikanor.nu> Link: https://lore.kernel.org/r/20190704060811.10330-4-simon@nikanor.nu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000/kpc_dma')
-rw-r--r--drivers/staging/kpc2000/kpc_dma/fileops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/kpc2000/kpc_dma/fileops.c b/drivers/staging/kpc2000/kpc_dma/fileops.c
index 7feb2fde0db2..48ca88bc6b0b 100644
--- a/drivers/staging/kpc2000/kpc_dma/fileops.c
+++ b/drivers/staging/kpc2000/kpc_dma/fileops.c
@@ -247,7 +247,7 @@ int kpc_dma_open(struct inode *inode, struct file *filp)
struct dev_private_data *priv;
struct kpc_dma_device *ldev = kpc_dma_lookup_device(iminor(inode));
- if (ldev == NULL)
+ if (!ldev)
return -ENODEV;
if (!atomic_dec_and_test(&ldev->open_count)) {