Re: [PATCH v2] staging: kpc2000: remove unnecessary assertion on priv

2019-12-19 Thread Greg Kroah-Hartman
On Tue, Dec 17, 2019 at 04:58:24PM -0600, Aditya Pakki wrote: > In kpc_dma_transfer(), the assertion that priv is NULL is never > satisfied. The two callers of the function, dereference the priv > pointer before the call is executed. This patch removes the > unnecessary BUG_ON call. > > Signed-off

[PATCH v2] staging: kpc2000: remove unnecessary assertion on priv

2019-12-17 Thread Aditya Pakki
In kpc_dma_transfer(), the assertion that priv is NULL is never satisfied. The two callers of the function, dereference the priv pointer before the call is executed. This patch removes the unnecessary BUG_ON call. Signed-off-by: Aditya Pakki --- v1: Replace the recovery code by removing the asser