diff options
author | Dan Carpenter <error27@gmail.com> | 2010-12-23 15:15:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-28 16:56:14 -0500 |
commit | a7dd6027e55992dd7c409a71a4a2b576fda2f7c2 (patch) | |
tree | 21f78891b1bc5329956126d1101dad52b4823578 /drivers | |
parent | 17f7f4d9fcce8f1b75b5f735569309dee7665968 (diff) |
vxge: remove duplicated part of check
This is just a cleanup to make the static checkers happy. We don't need
to check "own" twice.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/vxge/vxge-traffic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxge/vxge-traffic.c b/drivers/net/vxge/vxge-traffic.c index 42cc29843ac7..4c10d6c4075f 100644 --- a/drivers/net/vxge/vxge-traffic.c +++ b/drivers/net/vxge/vxge-traffic.c | |||
@@ -1240,7 +1240,7 @@ enum vxge_hw_status vxge_hw_ring_rxd_next_completed( | |||
1240 | *t_code = (u8)VXGE_HW_RING_RXD_T_CODE_GET(control_0); | 1240 | *t_code = (u8)VXGE_HW_RING_RXD_T_CODE_GET(control_0); |
1241 | 1241 | ||
1242 | /* check whether it is not the end */ | 1242 | /* check whether it is not the end */ |
1243 | if (!own || ((*t_code == VXGE_HW_RING_T_CODE_FRM_DROP) && own)) { | 1243 | if (!own || *t_code == VXGE_HW_RING_T_CODE_FRM_DROP) { |
1244 | 1244 | ||
1245 | vxge_assert(((struct vxge_hw_ring_rxd_1 *)rxdp)->host_control != | 1245 | vxge_assert(((struct vxge_hw_ring_rxd_1 *)rxdp)->host_control != |
1246 | 0); | 1246 | 0); |