OSDN Git Service

i40e: better return values
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Wed, 25 Sep 2013 23:41:14 +0000 (23:41 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 27 Sep 2013 12:22:30 +0000 (05:22 -0700)
commit078b587648950e75a4a303e4afbb127d2dd323dc
tree4175f9357eb6bc48c16fe40d851f7e63960dc402
parentdcae29be4fba85cc9965511f5c112bd08892b1cb
i40e: better return values

As mentioned by Joe Perches, clean up return values in some functions
making sure to have consistent return types, not mixing types.

A couple of Joe's comments suggested returning void, but since
the functions in question are ndo defined, the return values are fixed.
So make a comment in the header that notes this is a function called by
net_device_ops.

v2: fix post increment bug in return

CC: Joe Perches <joe@perches.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c