linux/drivers/net/pch_gbe
Dan Carpenter 89980827c7 pch_gbe: fix if condition in set_settings()
There were no curly braces in this if condition so it always enabled full
duplex.

And ecmd->speed is an unsigned short so it is never equal to -1.  The
effect is that mii_ethtool_sset() fails with -EINVAL and an error is
printed to dmesg.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-10-16 11:13:20 -07:00
..
Makefile
pch_gbe_api.c
pch_gbe_api.h
pch_gbe_ethtool.c pch_gbe: fix if condition in set_settings() 2010-10-16 11:13:20 -07:00
pch_gbe_main.c NET: pch, fix use after free 2010-10-11 11:13:59 -07:00
pch_gbe_param.c
pch_gbe_phy.c
pch_gbe_phy.h
pch_gbe.h