]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf649144ebf60e46b00ad5c1ba11ac0007982a406
treece191665b67beae5f3a13f3073c572747b5903e5
parent1ef5ecb6f06f3ba193453fd6a38bd58455fc3a24
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