[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1512571278-13196-1-git-send-email-ivan.khoronzhuk@linaro.org>
Date: Wed, 6 Dec 2017 16:41:18 +0200
From: Ivan Khoronzhuk <ivan.khoronzhuk@...aro.org>
To: grygorii.strashko@...com
Cc: netdev@...r.kernel.org, davem@...emloft.net,
linux-omap@...r.kernel.org, linux-kernel@...r.kernel.org,
Ivan Khoronzhuk <ivan.khoronzhuk@...aro.org>
Subject: [PATCH net-next] net: ethernet: ti: cpdma: rate is not changed - correct case
If rate is the same as set it's correct case.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@...aro.org>
---
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
Powered by blists - more mailing lists