Re: [patch] qlcnic: use the correct ring in qlcnic_83xx_process_rcv_ring_diag()

From: David Miller
Date: Wed Jun 29 2016 - 05:48:38 EST


From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Mon, 27 Jun 2016 23:50:29 +0300

> There is a static checker warning here "warn: mask and shift to zero"
> and the code sets "ring" to zero every time. From looking at how
> QLCNIC_FETCH_RING_ID() is used in qlcnic_83xx_process_rcv_ring() the
> qlcnic_83xx_hndl() should be removed.
>
> Fixes: 4be41e92f7c6 ('qlcnic: 83xx data path routines')
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied.