Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbdLFOla (ORCPT ); Wed, 6 Dec 2017 09:41:30 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:46406 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751941AbdLFOlX (ORCPT ); Wed, 6 Dec 2017 09:41:23 -0500 X-Google-Smtp-Source: AGs4zMbXnID6RYK/LgMS3ZcGz0aSrPeSM4uR9n68vtuVeefoJIfMNy23u6oW6//0T1yxw55Tt8ERhA== From: Ivan Khoronzhuk To: grygorii.strashko@ti.com Cc: netdev@vger.kernel.org, davem@davemloft.net, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case Date: Wed, 6 Dec 2017 16:41:18 +0200 Message-Id: <1512571278-13196-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 673 Lines: 24 If rate is the same as set it's correct case. Signed-off-by: Ivan Khoronzhuk --- Based on net-next/master drivers/net/ethernet/ti/davinci_cpdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ti/davinci_cpdma.c b/drivers/net/ethernet/ti/davinci_cpdma.c index e4d6edf..dbe9167 100644 --- a/drivers/net/ethernet/ti/davinci_cpdma.c +++ b/drivers/net/ethernet/ti/davinci_cpdma.c @@ -841,7 +841,7 @@ int cpdma_chan_set_rate(struct cpdma_chan *ch, u32 rate) return -EINVAL; if (ch->rate == rate) - return rate; + return 0; ctlr = ch->ctlr; spin_lock_irqsave(&ctlr->lock, flags); -- 2.7.4