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>
This commit is contained in:
Simon Sandström 2019-07-04 08:08:11 +02:00 committed by Greg Kroah-Hartman
parent a50d99d401
commit 5d15324829

View File

@ -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)) {