Thread (24 messages) 24 messages, 2 authors, 2025-06-17

Re: [PATCH net-next v13 07/13] net: pse-pd: Add support for budget evaluation strategies

flat view

From: Kory Maincent <kory.maincent@bootlin.com>
Date: 2025-06-17 09:17:26
Also in: linux-devicetree, linux-doc, lkml

Le Mon, 16 Jun 2025 09:56:58 -0700,
Jakub Kicinski [off-list ref] a écrit :
On Mon, 16 Jun 2025 15:14:37 +0200 Kory Maincent wrote:
quoted
quoted
On Tue, 10 Jun 2025 10:11:41 +0200 Kory Maincent wrote:    
 [...]  
quoted
quoted
the only caller of this function seems to negate the return value:

drivers/net/pse-pd/pse_core.c:369:              if
(!pse_pi_is_admin_enable_not_applied(pcdev, i))

let's avoid the double negation ?    
I thought it was better for comprehension.
If we inverse the behavior we would have a function name like that:
pse_pi_is_admin_disable_not_detected_or_applied()

Do you have a better proposition?  
Would pse_pi_is_admin_enable_pending() work?
Indeed that could work! Thanks!

-- 
Köry Maincent, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help