[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200319.210329.1045324274739014303.davem@davemloft.net>
Date: Thu, 19 Mar 2020 21:03:29 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: antoine.tenart@...tlin.com
Cc: andrew@...n.ch, f.fainelli@...il.com, hkallweit1@...il.com,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] net: phy: mscc: add missing check on a
phy_write return value
From: Antoine Tenart <antoine.tenart@...tlin.com>
Date: Thu, 19 Mar 2020 13:48:19 +0100
> Commit a5afc1678044 ("net: phy: mscc: add support for VSC8584 PHY")
> introduced a call to 'phy_write' storing its return value to a variable
> called 'ret'. But 'ret' never was checked for a possible error being
> returned, and hence was not used at all. Fix this by checking the return
> value and exiting the function if an error was returned.
>
> As this does not fix a known bug, this commit is mostly cosmetic and not
> sent as a fix.
>
> Signed-off-by: Antoine Tenart <antoine.tenart@...tlin.com>
Applied, thanks.
Powered by blists - more mailing lists