netdev: change transmit to limited range type
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 31 Aug 2009 19:50:40 +0000 (19:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Sep 2009 08:13:03 +0000 (01:13 -0700)
commitdc1f8bf68b311b1537cb65893430b6796118498a
tree25aa489e1c88d6a535b6d6a694dcaf41f5256fa4
parent9e39f7c5b311a306977c5471f9e2ce4c456aa038
netdev: change transmit to limited range type

The transmit function should only return one of three possible values,
some drivers got confused and returned errno's or other values.
This changes the definition so that this can be caught at compile time.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h