diff options
author | Sam Muhammed <jane.pnx9@gmail.com> | 2020-03-25 10:26:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-25 19:38:39 +0100 |
commit | 0af192c755bdfe0476d3ffc99e8483644c026deb (patch) | |
tree | f37ec7df00fb2d1b23d4b24afddf5da284af61fa /drivers/staging/kpc2000/kpc_dma/dma.c | |
parent | staging: hp100: Properly indent the multiline comments. (diff) | |
download | linux-dev-0af192c755bdfe0476d3ffc99e8483644c026deb.tar.xz linux-dev-0af192c755bdfe0476d3ffc99e8483644c026deb.zip |
Staging: kpc2000: kpc_dma: Remove comparison to NULL.
Comparison to NULL been used across the driver,
remove them and use (!var) instead.
Checkpatch.pl: CHECK:
Comparison to NULL could be written "!desc"... etc
Signed-off-by: Sam Muhammed <jane.pnx9@gmail.com>
Link: https://lore.kernel.org/r/f344afba0a8bb0413941a63678688435f04a96b4.1585143581.git.jane.pnx9@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000/kpc_dma/dma.c')
-rw-r--r-- | drivers/staging/kpc2000/kpc_dma/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/kpc2000/kpc_dma/dma.c b/drivers/staging/kpc2000/kpc_dma/dma.c index 51a4dd534a0d..4bfbc717bc07 100644 --- a/drivers/staging/kpc2000/kpc_dma/dma.c +++ b/drivers/staging/kpc2000/kpc_dma/dma.c @@ -236,7 +236,7 @@ int count_descriptors_available(struct kpc_dma_device *eng) struct kpc_dma_descriptor *cur = eng->desc_next; while (cur != eng->desc_completed) { - BUG_ON(cur == NULL); + BUG_ON(!cur); count++; cur = cur->Next; } |