Received: by 10.223.185.116 with SMTP id b49csp721830wrg; Sat, 3 Mar 2018 06:08:47 -0800 (PST) X-Google-Smtp-Source: AG47ELt2nErEoRYMxW6lR8vOd7GXq8Y/u+ZO2NKSDK4k0dmoAPVVhWH0vtFeTMhRciQE4fzJlLPh X-Received: by 2002:a17:902:d90f:: with SMTP id c15-v6mr4484614plz.223.1520086127160; Sat, 03 Mar 2018 06:08:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520086127; cv=none; d=google.com; s=arc-20160816; b=mIllC/PbgY8f62E/2HqyKOYyEy2/Q6XzNYYljInEipqWUadS6LIl/pc59GloaajOmB JI1gC57iwk2q/2Cd5zFg7Hd1NFaHXZuSnp7axUIgZOrcRS37bNLNYTvBSPcD7rBT0pjn /kTI/OLe6ENeynBuhQ7VmjmHj9X/swtKYAkZwZaaWqvdbsPTw+6FXiuskkkLadRTENpw VosHNl108dRN0DJ/FyF2KV8HyhQxNjq4od/xH1Ys8btp5YOw+tOcOQ2QPnD532DcqB5u DOJUWHoDNp9ZkJRhwyTLfk/sbsTJuwVLGOBfc3MeUkaI4bVh1VYHsFxwPGfFFWsge0aJ y1yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=HUvmxSq8oWiEC1hf0ydF53t08JoQO/PRp/yBiMDTVwc=; b=o6Hgmn/M8F6wulvCcIYdybS8UkSWMQpk9Dq4ejrgYhZNz7E0ODpMtWLbpdd9LGv3LA HZM1R+TBXUZ1wZNQjJtz5ePmmK2kStaS5zyBrxF8XNZTd0rkTxLeFfjB4OAaq9JDbZHg 6bd5NbMif2KIKgtV8rMxaG6auRD7eQoXWKS2nhictaVQ/Q7vyGbZM6ar9r2Q/00g+kiS /Bhu895UI7HKw2gfeWQzy4BBD7y7J2sVI7eEJq0IvCl0KimEELeiMx7DpMO3eBy3F0Sp W5B7sEMklyB7gGTqop0L1hUVgxHVgaZs0EU/w10uN/BddZ3qOuxVcbgOBHMIOc4U9HNl 851Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r22si6729216pfj.140.2018.03.03.06.08.32; Sat, 03 Mar 2018 06:08:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752066AbeCCOHR (ORCPT + 99 others); Sat, 3 Mar 2018 09:07:17 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:33268 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbeCCOHQ (ORCPT ); Sat, 3 Mar 2018 09:07:16 -0500 X-IronPort-AV: E=Sophos;i="5.47,418,1515452400"; d="scan'208";a="256828695" Received: from abo-3-110-68.mrs.modulonet.fr (HELO [192.168.0.15]) ([85.68.110.3]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2018 15:07:14 +0100 Date: Sat, 3 Mar 2018 15:07:13 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Arushi Singhal cc: dennis.dalessandro@intel.com, mike.marciniszyn@intel.com, Doug Ledford , Jason Gunthorpe , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: Re: [Outreachy kernel] [PATCH] infiniband: hw: Drop unnecessary continue In-Reply-To: <20180303130336.GA8210@seema-Inspiron-15-3567> Message-ID: References: <20180303130336.GA8210@seema-Inspiron-15-3567> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 3 Mar 2018, Arushi Singhal wrote: > Continue at the bottom of a loop are removed. > Issue found using drop_continue.cocci Coccinelle script. > > Signed-off-by: Arushi Singhal > --- > drivers/infiniband/hw/qib/qib_init.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/infiniband/hw/qib/qib_init.c b/drivers/infiniband/hw/qib/qib_init.c > index 3990f38..1bd3b32 100644 > --- a/drivers/infiniband/hw/qib/qib_init.c > +++ b/drivers/infiniband/hw/qib/qib_init.c > @@ -681,7 +681,6 @@ int qib_init(struct qib_devdata *dd, int reinit) > if (lastfail) { > qib_dev_err(dd, > "failed to allocate kernel ctxt's rcvhdrq and/or egr bufs\n"); > - continue; > } Again, the braces should be dropped too. julia > } > > -- > 2.7.4 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20180303130336.GA8210%40seema-Inspiron-15-3567. > For more options, visit https://groups.google.com/d/optout. >