[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5bdbffc5-068b-494a-a44b-f9586bf28f6c@stanley.mountain>
Date: Thu, 17 Oct 2024 22:02:00 +0300
From: Dan Carpenter <dan.carpenter@...aro.org>
To: "Everest K.C." <everestkc@...restkc.com.np>
Cc: dpenkler@...il.com, gregkh@...uxfoundation.org,
skhan@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH V2] staging: gpib: Change return type and error code of
fluke_get_dma_residue
On Thu, Oct 17, 2024 at 03:25:10AM -0600, Everest K.C. wrote:
> fluke_get_dma_residue() returns unsigned int with -1 as error code.
> This error cannot be caught.
> Fix this by changing the return type of the function to int and
> returning the error code, that was captured. Also, change the data
> type of variable residue to int in the function fluke_dma_read().
>
> Fixes: 55936779f496 ("staging: gpib: Add Fluke cda based cards GPIB driver")
> Signed-off-by: Everest K.C. <everestkc@...restkc.com.np>
> ---
> V1 -> V2: - Fixed the caller
> - Updated the changelog
>
Thanks!
Reviewed-by: Dan Carpenter <dan.carpenter@...aro.org>
regards,
dan carpenter
Powered by blists - more mailing lists