[Intel-wired-lan] [PATCH S12 04/14] ice: remove redundant variable and if condition
Bowers, AndrewX
andrewx.bowers at intel.com
Fri Feb 22 23:50:26 UTC 2019
> -----Original Message-----
> From: Intel-wired-lan [mailto:intel-wired-lan-bounces at osuosl.org] On
> Behalf Of Anirudh Venkataramanan
> Sent: Friday, February 8, 2019 12:51 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH S12 04/14] ice: remove redundant variable
> and if condition
>
> From: Brett Creeley <brett.creeley at intel.com>
>
> In ice_pf_rxq_wait we are using an unnecessary local variable and also we
> are checking if the timeout time was reached after the loop. Get rid of the
> local variable and return 0 right when we get a successful result. This makes it
> so we can return -ETIMEDOUT if we ever exit the loop because we know the
> timeout time has been hit.
>
> Signed-off-by: Brett Creeley <brett.creeley at intel.com>
> Signed-off-by: Anirudh Venkataramanan
> <anirudh.venkataramanan at intel.com>
> ---
> drivers/net/ethernet/intel/ice/ice_lib.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list