Re: [PATCH] net: dsa: mv88e6xxx: fix uninitialized error return

From: David Miller
Date: Thu Apr 28 2016 - 16:29:55 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Mon, 25 Apr 2016 23:11:22 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The error return err is not initialized and there is a possibility
> that err is not assigned causing mv88e6xxx_port_bridge_join to
> return a garbage error return status. Fix this by initializing err
> to 0.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied.