rtnetlink: clean up SR-IOV config interface
authorWilliams, Mitch A <mitch.a.williams@intel.com>
Wed, 24 Feb 2010 21:59:56 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Feb 2010 12:18:35 +0000 (04:18 -0800)
commit4edb246626be6e031950205c885bdf29fb2ff1eb
tree0bc82da3faff62d942c838f3bc020e1081ff9bfe
parent914c8ad2d18b62ad1420f518c0cab0b0b90ab308
rtnetlink: clean up SR-IOV config interface

This patch consists of a few minor cleanups to the SR-IOV
configurion code in rtnetlink.
- Remove unneccesary lock
- Remove unneccesary casts
- Return correct error code for no driver support

These changes are based on comments from Patrick McHardy

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c