Skip to content

Commit

Permalink
vxge: remove duplicated part of check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Dec 28, 2010
1 parent 17f7f4d commit a7dd602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/vxge/vxge-traffic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ enum vxge_hw_status vxge_hw_ring_rxd_next_completed(
*t_code = (u8)VXGE_HW_RING_RXD_T_CODE_GET(control_0);

/* check whether it is not the end */
if (!own || ((*t_code == VXGE_HW_RING_T_CODE_FRM_DROP) && own)) {
if (!own || *t_code == VXGE_HW_RING_T_CODE_FRM_DROP) {

vxge_assert(((struct vxge_hw_ring_rxd_1 *)rxdp)->host_control !=
0);
Expand Down

0 comments on commit a7dd602

Please sign in to comment.