[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEO-vhGhjX27YUkvue7dc1tn_k1wXDT7nv4kn=+zrcK=1j-yZw@mail.gmail.com>
Date: Thu, 17 Oct 2024 03:26:44 -0600
From: "Everest K.C." <everestkc@...restkc.com.np>
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: dpenkler@...il.com, gregkh@...uxfoundation.org, skhan@...uxfoundation.org,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: gpib: Change return type and error code of fluke_get_dma_residue
On Thu, Oct 17, 2024 at 3:01 AM Dan Carpenter <dan.carpenter@...aro.org> wrote:
>
> On Thu, Oct 17, 2024 at 02:20:22AM -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.
> >
> > Fixes: 55936779f496 ("staging: gpib: Add Fluke cda based cards GPIB driver")
> > Signed-off-by: Everest K.C. <everestkc@...restkc.com.np>
> > ---
>
> So like quite often we would merge a patch like this, because there's nothing
> wrong with it and why not? It's a step in the right direction. But actually
> in this case could you fix the caller as well?
I feel so dumb that I missed it. V2 is on the way.
> Do it all in the same patch. It's the one *whole* thing per patch rule.
Noted.
> regards,
> dan carpenter
>
Thanks,
Everest K.C.
Powered by blists - more mailing lists