vxge: remove duplicated part of check
authorDan Carpenter <error27@gmail.com>
Thu, 23 Dec 2010 20:15:39 +0000 (20:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Dec 2010 21:56:14 +0000 (13:56 -0800)
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>
drivers/net/vxge/vxge-traffic.c

index 42cc29843ac798c00ece16da7bcee905f45a916a..4c10d6c4075fdd8092a6f9dc599ae81073d2cb85 100644 (file)
@@ -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);