Thread (11 messages) 11 messages, 4 authors, 2026-02-15

Re: [PATCH v3 2/4] iio: proximity: hx9023s: Protect against division by zero in set_samp_freq

From: Jonathan Cameron <jic23@kernel.org>
Date: 2026-02-14 17:43:22
Also in: linux-iio, lkml

On Fri, 13 Feb 2026 18:39:16 +0200
Andy Shevchenko [off-list ref] wrote:
On Fri, Feb 13, 2026 at 11:14:44PM +0800, Yasin Lee wrote:
quoted
Avoid division by zero when sampling frequency is unspecified.  
In case of agreement this is the desired behaviour you can add
Reviewed-by: Andy Shevchenko <redacted>
It seems sensible to me as avoids undefined behaviour + is
unlikely to make any functional difference as I assume that whatever
we got from the undef never in practice matched a valid input.

So applied patches 1 and 2 to my fixes-togreg branch. I'm not pushing
that out just now though as I want rc1 to rebase it on first.

Thanks,

Jonathan
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help