]> 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)
commit5905d2b92a23d62de91611498e1c81926479a59c
treefb8b94e40a02bafd2f10792f1bf26100523f6e4a
parent3a3d4ea0cc2ddbd457b9d26d7fb6400077645178
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