]> err.no Git - linux-2.6/commit
sc92031: start transmit return value bugfix
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 2 Apr 2008 17:11:11 +0000 (10:11 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 00:41:35 +0000 (20:41 -0400)
commit26a17b7bbb36a8552d531bc1ad08472fb5aa3007
tree3a1041cb4661f313fbba5e276f3d0eeef36d28d4
parent9c28eaea90aef8db20004d29f924ad3059d9704e
sc92031: start transmit return value bugfix

Any negative return value from start_xmit is interpreted as NETDEV_TX_LOCK
which is not what this driver wants. It should return 0 (NETDEV_TX_OK)
when it consumes a packet.

Also, use skb_padto() as the generic way to pad small frames.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sc92031.c