]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: remove unnecessary assertions in kpc_dma_transfer
authorAditya Pakki <pakki001@umn.edu>
Thu, 19 Dec 2019 17:21:11 +0000 (11:21 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2020 10:04:57 +0000 (11:04 +0100)
commit0e847580a6a046a9cbc7fda3052ae57b861d8844
tree44d95b22e01493bca491e2fdbc89f387a0942627
parent4baa999ea7aaab5f9b80df407cf0a1a19c77bc56
staging: kpc2000: remove unnecessary assertions in kpc_dma_transfer

In kpc_dma_transfer(), the assertion that priv is NULL and priv->ldev
is NULL, are never satisfied. The two callers of the function,
dereference the fields before the function is called. This patch
removes the two BUG_ON calls.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Link: https://lore.kernel.org/r/20191219172118.17456-1-pakki001@umn.edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc_dma/fileops.c