[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20171108.102513.1587986704874969740.davem@davemloft.net>
Date: Wed, 08 Nov 2017 10:25:13 +0900 (KST)
From: David Miller <davem@...emloft.net>
To: mail@...iej.szmigiero.name
Cc: andrew@...n.ch, f.fainelli@...il.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/2] net: phy: leds: Refactor "no link" handler into
a separate function
From: "Maciej S. Szmigiero" <mail@...iej.szmigiero.name>
Date: Thu, 2 Nov 2017 00:48:45 +0100
> Currently, phy_led_trigger_change_speed() is handling a "no link" condition
> like it was some kind of an error (using "goto" to a code at the function
> end).
>
> However, having no link at PHY is an ordinary operational state, so let's
> handle it in an appropriately named separate function so it is more obvious
> what the code is doing.
>
> Signed-off-by: Maciej S. Szmigiero <mail@...iej.szmigiero.name>
Applied.
Powered by blists - more mailing lists