Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754876AbbG1H2f (ORCPT ); Tue, 28 Jul 2015 03:28:35 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:63035 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbbG1H2e (ORCPT ); Tue, 28 Jul 2015 03:28:34 -0400 X-IronPort-AV: E=Sophos;i="5.15,561,1432591200"; d="scan'208";a="141354416" Date: Tue, 28 Jul 2015 09:28:20 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Shraddha Barke cc: Karsten Keil , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Drivers: isdn: Drop unnecessary continue In-Reply-To: <1438067766-6438-1-git-send-email-shraddha.6596@gmail.com> Message-ID: References: <1438067766-6438-1-git-send-email-shraddha.6596@gmail.com> 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 Content-Length: 1144 Lines: 48 On Tue, 28 Jul 2015, Shraddha Barke wrote: > The semantic patch used to make this change is : > > @@ > @@ > for (...;...;...) { > ... > if (...) { > ... > - continue; > } > } > > Signed-off-by: Shraddha Barke > --- > drivers/isdn/hardware/mISDN/hfcsusb.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/isdn/hardware/mISDN/hfcsusb.c b/drivers/isdn/hardware/mISDN/hfcsusb.c > index 114f3bc..34e4b6c 100644 > --- a/drivers/isdn/hardware/mISDN/hfcsusb.c > +++ b/drivers/isdn/hardware/mISDN/hfcsusb.c > @@ -1923,7 +1923,6 @@ hfcsusb_probe(struct usb_interface *intf, const struct usb_device_id *id) > (le16_to_cpu(dev->descriptor.idProduct) > == hfcsusb_idtab[i].idProduct)) { > vend_idx = i; > - continue; Now there is only one statement in the branch, so the {} should go as well. julia > } > } > > -- > 2.1.0 > > -- 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/