RE: [Intel-wired-lan] [PATCH net-next] i40e: Make i40e_shutdown_adminq() return void
From: Bowers, AndrewX
Date: Thu May 07 2020 - 16:52:39 EST
-----Original Message-----
From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of Jason Yan
Sent: Tuesday, May 5, 2020 11:19 PM
To: Kirsher, Jeffrey T <jeffrey.t.kirsher@xxxxxxxxx>; davem@xxxxxxxxxxxxx; Azarewicz, Piotr <piotr.azarewicz@xxxxxxxxx>; intel-wired-lan@xxxxxxxxxxxxxxxx; netdev@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
Cc: Jason Yan <yanaijie@xxxxxxxxxx>
Subject: [Intel-wired-lan] [PATCH net-next] i40e: Make i40e_shutdown_adminq() return void
Fix the following coccicheck warning:
drivers/net/ethernet/intel/i40e/i40e_adminq.c:699:13-21: Unneeded
variable: "ret_code". Return "0" on line 710
Signed-off-by: Jason Yan <yanaijie@xxxxxxxxxx>
---
drivers/net/ethernet/intel/i40e/i40e_adminq.c | 6 +-----
drivers/net/ethernet/intel/i40e/i40e_prototype.h | 2 +-
2 files changed, 2 insertions(+), 6 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers@xxxxxxxxx>