igb: make igb_set_fc_watermarks() return void
authorJason Yan <yanaijie@huawei.com>
Thu, 7 May 2020 11:09:15 +0000 (19:09 +0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 29 May 2020 03:04:01 +0000 (20:04 -0700)
commit49c65e95f331201d431386dcb7c652bf02b306d1
treece191665b67beae5f3a13f3073c572747b5903e5
parentf2d9f294120fddec48e38e50d420c1d0a247661d
igb: make igb_set_fc_watermarks() return void

This function always return 0 now, we can make it return void to
simplify the code. This fixes the following coccicheck warning:

drivers/net/ethernet/intel/igb/e1000_mac.c:728:5-12: Unneeded variable:
"ret_val". Return "0" on line 751

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/e1000_mac.c