[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191029.120809.331773295638073169.davem@davemloft.net>
Date: Tue, 29 Oct 2019 12:08:09 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: vivien.didelot@...il.com
Cc: andrew@...n.ch, f.fainelli@...il.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: dsa: return directly from dsa_to_port
From: Vivien Didelot <vivien.didelot@...il.com>
Date: Fri, 25 Oct 2019 14:48:53 -0400
> 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>
Applied, thanks.
Powered by blists - more mailing lists