Skip to content

Commit 5d15324

Browse files
gurkagregkh
authored andcommitted
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>
1 parent a50d99d commit 5d15324

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/staging/kpc2000/kpc_dma/fileops.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ int kpc_dma_open(struct inode *inode, struct file *filp)
247247
struct dev_private_data *priv;
248248
struct kpc_dma_device *ldev = kpc_dma_lookup_device(iminor(inode));
249249

250-
if (ldev == NULL)
250+
if (!ldev)
251251
return -ENODEV;
252252

253253
if (!atomic_dec_and_test(&ldev->open_count)) {

0 commit comments

Comments
 (0)