Thread (18 messages) 18 messages, 3 authors, 2023-05-28

Re: [PATCH v5 3/8] net-next: mvpp2: relax return value check for IRQ get

From: Matti Vaittinen <mazziesaccount@gmail.com>
Date: 2023-05-22 05:15:17
Also in: linux-acpi, linux-gpio, linux-i2c, linux-iio, linux-mips, lkml

Hi Andy,

On 5/21/23 20:19, andy.shevchenko@gmail.com wrote:
Fri, May 19, 2023 at 02:01:47PM +0300, Matti Vaittinen kirjoitti:
quoted
fwnode_irq_get[_byname]() were changed to not return 0 anymore.

Drop check for return value 0.
...
quoted
-		if (v->irq <= 0) {
+		if (v->irq < 0) {
  			ret = -EINVAL;
			ret = v->irq;

?
For me that seems to be correct, yes. This, however, would be a 
functional change and in my opinion it should be done separately from 
this API change.
quoted
  			goto err;
  		}
-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help