[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5bbf371c2c62925eb3cd1794dfaf1bdfcb7fb9bd.camel@sipsolutions.net>
Date: Thu, 24 Oct 2024 16:40:27 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Sabrina Dubroca <sd@...asysnail.net>
Cc: linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [RFC PATCH 2/2] net: convert to nla_get_*_default()
On Thu, 2024-10-24 at 16:31 +0200, Johannes Berg wrote:
> On Thu, 2024-10-24 at 16:28 +0200, Sabrina Dubroca wrote:
> >
> >
> > Not really familiar with spatch, but I'm guessing this won't cover:
> > val = attr ? getter(attr) : default;
>
> True, we could add
>
> -val = attr ? fn(attr) : def;
> +val = dfn(attr);
>
There are about 50 of those :) thanks!
johannes
Powered by blists - more mailing lists