iavf: remove redundant ret variable
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 10 Jan 2022 10:46:56 +0000 (10:46 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Tue, 1 Mar 2022 16:50:11 +0000 (08:50 -0800)
commitc3fec56e12678c3ad68084048a73818a7968d6b8
treea3bfcf88de2242a420397fbb842503eae91836d7
parenta3e839d539e0ecfea0f95b8cbaac738a5e24afb5
iavf: remove redundant ret variable

Return value directly instead of taking this in another redundant
variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: CGEL ZTE <cgel.zte@gmail.com>
Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c