]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
netxen: reversed condition in netxen_nic_set_link_parameters()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 May 2016 13:19:44 +0000 (16:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 May 2016 19:15:32 +0000 (15:15 -0400)
commit1c755ffa4fa3e2d4112cadd30142344789ad2fd2
tree8ec57b56379479b15410ea20251985fb0c1ffa70
parent545fea54916af5e88f02346d85301ba0ecc143f3
netxen: reversed condition in netxen_nic_set_link_parameters()

My static checker complains that we are using "autoneg" without
initializing it.  The problem is the ->phy_read() condition is reversed
so we only set this on error instead of success.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c