Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1270704ybt; Sat, 27 Jun 2020 03:22:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztkPM8B4rXjc/4WTDMhgJvHgz3z9k8gfZlsFN94GIl7FUjOh14rM1AVr9JzLWDwLwWk+nh X-Received: by 2002:a17:906:dbe5:: with SMTP id yd5mr6271096ejb.328.1593253357618; Sat, 27 Jun 2020 03:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593253357; cv=none; d=google.com; s=arc-20160816; b=u+TsQ4oEgav0/uQ9XNIoXRPd10JW5RdEOHWU+RCCfm4x2jRHm27pgytTw7PqKomvO7 AF8LkHPym94HgbUHJh2plLB+4shi5AuzN4wip9yJIwQfEuCtjANy311ryICizxLyDcAH eh3+cFu++AKuEev3p08amVx4YVtIMGfY0CiBF8CC/PK+Jlqgbs2kpvSyquuyqCr//Vc7 aMsbal9bRmgGKwjt5tKunKIagKbn+QrWzxk6AjgSX716yd8YCvfqno19SUmMw8g7QGPJ gVj4vWXUmYqF/s33xUR1wkq9nxl6vDJXHBcwbk0HPN+39Teyzhl6PtTmFOXWQnfh6U+o l1kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:date:from :dkim-signature; bh=tW07XZiC9CEEWw6VcmU9nAkZCHxzclaGfw7X0IosT68=; b=cUq/eI2oeXzZmdcF2l0xobK2opS7F7mOG6/p8xf47lZuxv+/vDoxgPyiCGSuT4oj/A w0fPTH3Mx/UK2nOP6vCpIVxm0IQksANckIdxm/eVQBSLTGWzL98ju5dmlTWcZxVH9Ngb wGBq8FHAyK0LdQ2tZ1fMEsW445QJTme4DdW7GUgYEHCVQpII5DKMPSAL+AqM5l6z8m0k pFsMTTf6K36q1ABkIPqJq30mKlPxyhHe9rD5EgLXHLSHvbAo+2hzUc02RKHvPejF6F6s CdwFr4hHrlv6EO3R+oCpRGa0khjog0AjW9cW2w4GbIcLvPMGjHDyz+Z8xKRILa7KaFin stiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hS263lqB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si1554868edq.34.2020.06.27.03.22.14; Sat, 27 Jun 2020 03:22:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hS263lqB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726500AbgF0KVk (ORCPT + 99 others); Sat, 27 Jun 2020 06:21:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726175AbgF0KVh (ORCPT ); Sat, 27 Jun 2020 06:21:37 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F9C7C03E979; Sat, 27 Jun 2020 03:21:37 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id e18so6118939pgn.7; Sat, 27 Jun 2020 03:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=tW07XZiC9CEEWw6VcmU9nAkZCHxzclaGfw7X0IosT68=; b=hS263lqByHbO7EYkzC8PMkEf1Zra+GukflOKzTVKlMAAmYsEImhAl6R5zhjVE4uJ54 59OgbvfmjJDVYGXAI2kbEczUHHuDoqJBso3wk1aw3DubX9tqf6sJFRL080s1+QHSz3+3 d5W/dZatNIQe2XxF74qw4mOLqUiQkxpEzSrfq4hH4EGSDZbFrCXVSK3hQnt2LB74B54U ZDIQM0v9LNkGOJXveWjbw9EohiRV2jgIRk14IJxT1sX7l58v88p57bb+RH1WHGwYSTIF /mVmNOk/DNfwFtsYqp0b9KXyRfHi4hXAAQlLH8kNlFkIT9jNAVYEM89e5X2aVZZzCFxo 1QsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=tW07XZiC9CEEWw6VcmU9nAkZCHxzclaGfw7X0IosT68=; b=sDI4VevdMsA3fjbD/ryoxj3rBssdDk0T7AJp/pXA69pT+eutRGWbiMKvKeLuWD9dO/ TxPoJv8Luo4YVK8e0EvaS6AAs24ueZAXfSw6hLe1565LWfes0pSJgLo1kMjL0hjmJIbg 5FTXxlx6qYYLqyKboDyQPKUM+6w3CBpXF8kbo/qB0xlAECCLJlUjJDMySqmpg9PZzbqu jVu/htI8dC75j4y527je2J90R+seB/jUI/fcETSn87QpB3SKNIqKyIwmCzVi7+ts0NxJ 4109FfkPTp3qnIOvRgy4sS/V2d93Y0WcrWogdqI8GazROkYHhgqUHiVjD07S20/adi76 A5KA== X-Gm-Message-State: AOAM532OQz0J/iZyvEZkgclQm6SqgA40IR9gTNcztDsJYj2vkz70BdqO jMsFRvaPNFP5jEsjKzhclj8= X-Received: by 2002:a63:e114:: with SMTP id z20mr2415276pgh.300.1593253297259; Sat, 27 Jun 2020 03:21:37 -0700 (PDT) Received: from localhost ([2001:e42:102:1532:160:16:113:140]) by smtp.gmail.com with ESMTPSA id l126sm1064898pfd.202.2020.06.27.03.21.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jun 2020 03:21:36 -0700 (PDT) From: Coiby Xu X-Google-Original-From: Coiby Xu Date: Sat, 27 Jun 2020 18:21:29 +0800 To: Joe Perches Cc: devel@driverdev.osuosl.org, Manish Chopra , "supporter:QLOGIC QLGE 10Gb ETHERNET DRIVER" , Greg Kroah-Hartman , "open list:QLOGIC QLGE 10Gb ETHERNET DRIVER" , open list Subject: Re: [PATCH 2/2] staging: qlge: fix else after return or break Message-ID: <20200627102129.iizp5rnj27viyfti@Rk> References: <20200625215755.70329-1-coiby.xu@gmail.com> <20200625215755.70329-3-coiby.xu@gmail.com> <049f51497b84e55e61aca989025b64493287cbab.camel@perches.com> <20200626235725.2rcpisito2253jhm@Rk> <324448187976fc690ea63f1c18e063fb0b09f740.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <324448187976fc690ea63f1c18e063fb0b09f740.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 05:06:33PM -0700, Joe Perches wrote: >On Sat, 2020-06-27 at 07:57 +0800, Coiby Xu wrote: >> On Thu, Jun 25, 2020 at 03:13:14PM -0700, Joe Perches wrote: >> > On Fri, 2020-06-26 at 05:57 +0800, Coiby Xu wrote: >> > > Remove unnecessary elses after return or break. >> > >> > unrelated trivia: >[] >> > looks like all of these could use netdev_err >[] >> should we also replace all pr_errs with netdev_err in >> ql_dump_* functions? > >Ideally, anywhere a struct netdevice * is available, it should >be used to output netdev_ in preference to pr_. Thank you for the explaining! -- Best regards, Coiby