From: Michal Simek <michal.simek@xilinx.com>
To: netdev@vger.kernel.org
Cc: "Michal Simek" <monstr@monstr.eu>,
"Sören Brinkmann" <soren.brinkmann@xilinx.com>,
"Fabian Frederick" <fabf@skynet.be>,
linux-kernel@vger.kernel.org,
"David S. Miller" <davem@davemloft.net>,
"Manuel Schölling" <manuel.schoelling@gmx.de>,
"Julia Lawall" <julia.lawall@lip6.fr>,
"Markus Elfring" <elfring@users.sourceforge.net>,
"Subbaraya Sundeep Bhatta" <subbaraya.sundeep.bhatta@xilinx.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH] net: ll_temac: Use one return statement instead of two
Date: Thu, 7 May 2015 15:29:17 +0200 [thread overview]
Message-ID: <b10b8e1e696a09152b9df535a8bd37e6500ac1c7.1431005352.git.michal.simek@xilinx.com> (raw)
From: Michal Simek <monstr@monstr.eu>
Use one return statement instead of two to simplify the code.
Both are returning the same value.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
drivers/net/ethernet/xilinx/ll_temac_main.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/net/ethernet/xilinx/ll_temac_main.c b/drivers/net/ethernet/xilinx/ll_temac_main.c
index 690a4c36b316..ca640d04fd93 100644
--- a/drivers/net/ethernet/xilinx/ll_temac_main.c
+++ b/drivers/net/ethernet/xilinx/ll_temac_main.c
@@ -688,10 +688,8 @@ static int temac_start_xmit(struct sk_buff *skb, struct net_device *ndev)
cur_p = &lp->tx_bd_v[lp->tx_bd_tail];
if (temac_check_tx_bd_space(lp, num_frag)) {
- if (!netif_queue_stopped(ndev)) {
+ if (!netif_queue_stopped(ndev))
netif_stop_queue(ndev);
- return NETDEV_TX_BUSY;
- }
return NETDEV_TX_BUSY;
}
--
2.3.5
next reply other threads:[~2015-05-07 13:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-07 13:29 Michal Simek [this message]
2015-05-07 15:30 ` [PATCH] net: ll_temac: Use one return statement instead of two Julia Lawall
2015-05-11 14:05 ` Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b10b8e1e696a09152b9df535a8bd37e6500ac1c7.1431005352.git.michal.simek@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=davem@davemloft.net \
--cc=elfring@users.sourceforge.net \
--cc=fabf@skynet.be \
--cc=julia.lawall@lip6.fr \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manuel.schoelling@gmx.de \
--cc=monstr@monstr.eu \
--cc=netdev@vger.kernel.org \
--cc=soren.brinkmann@xilinx.com \
--cc=subbaraya.sundeep.bhatta@xilinx.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).