[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cae5b4d55770da3a1dc9678ffa55c9afb9c81723.camel@redhat.com>
Date: Tue, 13 Feb 2024 13:43:57 +0100
From: Paolo Abeni <pabeni@...hat.com>
To: Daniil Dulov <d.dulov@...ddin.ru>, Russell King <linux@...linux.org.uk>
Cc: Andrew Lunn <andrew@...n.ch>, Heiner Kallweit <hkallweit1@...il.com>,
"David S. Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: Re: [PATCH] net: sfp: remove redundant NULL check
On Sun, 2024-02-11 at 07:08 -0800, Daniil Dulov wrote:
> bus->upstream_ops in sfp_register_bus() cannot be NULL. So remove
> redundant NULL check.
I'm unsure about that?!? in theory drivers could call
sfp_bus_add_upstream()/phy_sfp_probe() with NULL ops, even it that very
likely doesn't make any sense.
@Russel, @Andrew: WDYT?
Thanks,
Paolo
Powered by blists - more mailing lists