[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191025192146.GH30147@lunn.ch>
Date: Fri, 25 Oct 2019 21:21:46 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Vivien Didelot <vivien.didelot@...il.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Florian Fainelli <f.fainelli@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: dsa: return directly from dsa_to_port
On Fri, Oct 25, 2019 at 02:48:53PM -0400, Vivien Didelot wrote:
> Return directly from within the loop as soon as the port is found,
> otherwise we won't return NULL if the end of the list is reached.
>
> Fixes: b96ddf254b09 ("net: dsa: use ports list in dsa_to_port")
> Signed-off-by: Vivien Didelot <vivien.didelot@...il.com>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists