[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <17d184a2-0f81-fcfa-db34-c85b11c919fd@gmail.com>
Date: Tue, 17 Dec 2019 09:31:27 -0800
From: Florian Fainelli <f.fainelli@...il.com>
To: Russell King <rmk+kernel@...linux.org.uk>,
Andrew Lunn <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 07/11] net: phy: marvell: use positive logic for
link state
On 12/17/19 5:39 AM, Russell King wrote:
> Rather than using negative logic:
>
> if (there is no link)
> set link = 0
> else
> set link = 1
>
> use the more natural positive logic:
>
> if (there is link)
> set link = 1
> else
> set link = 0
>
> Signed-off-by: Russell King <rmk+kernel@...linux.org.uk>
Reviewed-by: Florian Fainelli <f.fainelli@...il.com>
--
Florian
Powered by blists - more mailing lists