[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b9a7fd83-54ff-427f-9d60-3cea5d156923@oracle.com>
Date: Tue, 3 Feb 2026 21:31:22 +0530
From: Harshit Mogalapalli <harshit.m.mogalapalli@...cle.com>
To: Andy Shevchenko <andriy.shevchenko@...el.com>
Cc: Jonathan Cameron <jic23@...nel.org>,
David Lechner
<dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>,
Andrew Ijano <andrew.ijano@...il.com>,
Antoniu Miclaus <antoniu.miclaus@...log.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org, error27@...il.com
Subject: Re: [PATCH v3 next 6/6] iio: sca3000: use guard(mutex) to simplify
return paths
Hi Andy,
On 03/02/26 20:53, Andy Shevchenko wrote:
> On Tue, Feb 03, 2026 at 04:20:50AM -0800, Harshit Mogalapalli wrote:
>> Switch sca3000_stop_all_interrupts() to use guard(mutex) to simplify the
>> error paths without needing a goto.
>
> ...
>
>> - if (ret)
>
>> + if (!ret)
>
> Leave the standard pattern to check for errors first.
>
Thanks, I will do that, I agree it would look simpler that way.
Regards,
Harshit
Powered by blists - more mailing lists