net: bridge: remove redundant check to see if err is set

The error check on err is redundant as it is being checked
previously each time it has been updated.  Remove this redundant
check.

Detected with CoverityScan, CID#140030("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Colin Ian King 2017-02-07 10:56:38 +00:00 committed by David S. Miller
parent ee467fbaaf
commit 1f02b5f42f

View File

@ -612,9 +612,6 @@ static int br_afspec(struct net_bridge *br,
return err;
break;
}
if (err)
return err;
}
return err;