]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit20567da8da195a600d486ecdcb52cbb0527b6ae0
tree0bc82da3faff62d942c838f3bc020e1081ff9bfe
parent9f7a85eab140c9dc43379c18704976a22fbc4234
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