Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754899AbaGIHOt (ORCPT ); Wed, 9 Jul 2014 03:14:49 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:40256 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754498AbaGIHOY (ORCPT ); Wed, 9 Jul 2014 03:14:24 -0400 From: Mugunthan V N To: CC: , , , Mugunthan V N Subject: [net-next PATCH v2 2/3] drivers: net: cpsw: remove redundancy check Date: Wed, 9 Jul 2014 12:44:09 +0530 Message-ID: <1404890050-4020-3-git-send-email-mugunthanvnm@ti.com> X-Mailer: git-send-email 2.0.0.390.gcb682f8 In-Reply-To: <1404890050-4020-1-git-send-email-mugunthanvnm@ti.com> References: <1404890050-4020-1-git-send-email-mugunthanvnm@ti.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In cpsw_set_coalesce, rx_coalesce_usecs is already checked before calling this function, so removing redundancy check. Signed-off-by: Mugunthan V N --- drivers/net/ethernet/ti/cpsw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index b988d16..a6117e6 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -884,9 +884,6 @@ static int cpsw_set_coalesce(struct net_device *ndev, u32 addnl_dvdr = 1; u32 coal_intvl = 0; - if (!coal->rx_coalesce_usecs) - return -EINVAL; - coal_intvl = coal->rx_coalesce_usecs; int_ctrl = readl(&priv->wr_regs->int_control); -- 2.0.0.390.gcb682f8 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/