commit | ce6b04ee8b112cc9d5ef41ba697a3ffabc630f42 | [log] [tgz] |
---|---|---|
author | Yuval Mintz <Yuval.Mintz@caviumnetworks.com> | Thu Oct 13 22:57:01 2016 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Oct 14 11:07:22 2016 -0400 |
tree | d0b5bdcac704ada0f696339e26e219d4452b67b7 | |
parent | 76506a986dc31394fd1f2741db037d29c7e57843 [diff] |
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>