qlcnic: use the correct ring in qlcnic_83xx_process_rcv_ring_diag()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 27 Jun 2016 20:50:29 +0000 (23:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 09:46:16 +0000 (05:46 -0400)
commit5b4d10f5e0369ed79434593b7cd8e85eebbe473f
treee2f3d7e7b90fe16028b94377b21974ba39310ff3
parentceb56070359b7329b5678b5d95a376fcb24767be
qlcnic: use the correct ring in qlcnic_83xx_process_rcv_ring_diag()

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@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c