]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbevf: make use of the dev pointer in the ixgbevf_ring struct
authorEmil Tantilov <emil.s.tantilov@intel.com>
Sat, 18 Jan 2014 02:29:59 +0000 (18:29 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jan 2014 03:15:10 +0000 (19:15 -0800)
commitb480de1ba3556c369b51f0df37754cc9f6dcfa43
treefb8b94e40a02bafd2f10792f1bf26100523f6e4a
parenta5e4f85581c2286ab2849f22e2412efe04b19acd
ixgbevf: make use of the dev pointer in the ixgbevf_ring struct

This patch cleans up the code by removing the adapter structure as
parameter from multiple functions. The adapter structure was previously
being used to access the dev pointer, but this can also be done via the
ixgbevf_ring structure. This way we can drop the adapter as parameter from
these functions.

This patch also includes small cleanups in some error code paths.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbevf/ethtool.c
drivers/net/ethernet/intel/ixgbevf/ixgbevf.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c