From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751548AbbEGPa6 (ORCPT ); Thu, 7 May 2015 11:30:58 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:18510 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750876AbbEGPaz (ORCPT ); Thu, 7 May 2015 11:30:55 -0400 X-IronPort-AV: E=Sophos;i="5.13,384,1427752800"; d="scan'208";a="114900809" Date: Thu, 7 May 2015 17:30:52 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Michal Simek cc: netdev@vger.kernel.org, Michal Simek , =?ISO-8859-15?Q?S=F6ren_Brinkmann?= , Fabian Frederick , linux-kernel@vger.kernel.org, "David S. Miller" , =?ISO-8859-15?Q?Manuel_Sch=F6lling?= , Julia Lawall , Markus Elfring , Subbaraya Sundeep Bhatta , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] net: ll_temac: Use one return statement instead of two In-Reply-To: Message-ID: References: User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 7 May 2015, Michal Simek wrote: > From: Michal Simek > > Use one return statement instead of two to simplify the code. > Both are returning the same value. > > Signed-off-by: Michal Simek The from should be the same as the signed off. You need From if you want something different than what is naturally put by your mailer. But that doesn't see to be the case. julia > --- > > 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 > >