From: Codrin Ciubotariu Date: Mon, 14 Mar 2016 11:46:50 +0000 (+0200) Subject: drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only X-Git-Tag: v2016.05-rc1~31^2~7 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9101a68c1577e875c350b5095effc8db1266b515;p=oweals%2Fu-boot.git drivers: net: vsc9953: Fix bug when PVID is shown for disabled ports only Signed-off-by: Codrin Ciubotariu Acked-by: Joe Hershberger Reviewed-by: York Sun --- diff --git a/drivers/net/vsc9953.c b/drivers/net/vsc9953.c index 4b3b811967..2388438d10 100644 --- a/drivers/net/vsc9953.c +++ b/drivers/net/vsc9953.c @@ -335,7 +335,7 @@ static int vsc9953_port_vlan_pvid_get(int port_nr, int *pvid) struct vsc9953_analyzer *l2ana_reg; /* Administrative down */ - if (vsc9953_l2sw.port[port_nr].enabled) { + if (!vsc9953_l2sw.port[port_nr].enabled) { printf("Port %d is administrative down\n", port_nr); return -1; }