OSDN Git Service

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)
commitd7a336d67ab5443a0ef14b8335d139e855e8a682
tree44d95b22e01493bca491e2fdbc89f387a0942627
parent398d999f96bf8e02573b0c7e32896c7812393bc0
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