Re: [PATCH v2 4/4] staging: kpc2000: kpc_dma: Remove additional goto statements

2020-06-30 Thread Dan Carpenter
On Tue, Jun 30, 2020 at 01:22:19PM +0530, Souptick Joarder wrote: > As 3 goto level referring to same common code, those can be > accomodated with a single goto level and renameing it to > unpin_pages. Set the -ERRNO when returning partial mapped > pages in more appropriate place. > > Signed-off-b

[PATCH v2 4/4] staging: kpc2000: kpc_dma: Remove additional goto statements

2020-06-30 Thread Souptick Joarder
As 3 goto level referring to same common code, those can be accomodated with a single goto level and renameing it to unpin_pages. Set the -ERRNO when returning partial mapped pages in more appropriate place. Signed-off-by: Souptick Joarder Cc: John Hubbard Cc: Bharath Vedartham Cc: Dan Carpente