qed: Fix static checker warning.
authorYuval Mintz <Yuval.Mintz@caviumnetworks.com>
Thu, 13 Oct 2016 19:57:01 +0000 (22:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Oct 2016 15:07:22 +0000 (11:07 -0400)
commitce6b04ee8b112cc9d5ef41ba697a3ffabc630f42
treed0b5bdcac704ada0f696339e26e219d4452b67b7
parent76506a986dc31394fd1f2741db037d29c7e57843
qed: Fix static checker warning.

Smatch compains about qed_roce_ll2_tx() dereference
of the 'cdev' variable while testing its validity later.
As the validation checking is an over-kill [variable would always
be set], simply remove it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: abd49676c707 ("qed: Add RoCE ll2 & GSI support")
Signed-off-by: Yuval Mintz <Yuval.Mintz@caviumnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c