Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp985763ybt; Fri, 26 Jun 2020 17:10:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsc0zM4lGFIFUd853SQcjXAPzvj6BRHYR6T1qXGd3RZBq+BkDLRO1pdliJLD7x9euhXiph X-Received: by 2002:a17:906:2b12:: with SMTP id a18mr4737820ejg.186.1593216637822; Fri, 26 Jun 2020 17:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593216637; cv=none; d=google.com; s=arc-20160816; b=mco2pjrBJ6yT8Fu5/hduj4WaVWICiC9pu9m1OdtzXuDiPUyAJod6CRP/m9K7aIj4rI mHHg4BxBP1cj5h5ACEnXAf8JUNw1mNoRSwLPppRKMcWav54T2tKTEfeTExpaPYVEdgVY pWaMGYSAhsf12PWysPYbP4PZ9KKxA9/QDsr4RKCo7eM8EK+ymZkR1/FBsXTHrvCsGLVJ Alflw84vuWxtldDLgsRwfObZDdbCVom9DBsJNbBQJLnsuW2qusFDEDSb4CddoSBPgNZN tkqFAsbiyT8wvtuvhOARbmT+hvJZz0RJjzqTVZ2rzeg1i/yoErJnKWwB+GwjbRSTfiyQ P+aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=CRoMyJnBJ1ZoQfG2dOJueaqv+VeYf0UrCUm5j9BLFGE=; b=DePQlF3Xh9HgLfX8GSmEZqqUBrDJ1lAEtVfzPSurFrSHMEUhZq5c33Tca24w0HY62S 6WSAoGI3yxtbeHY2zxUG2ZcTMEP0/gnHPGDsLCnBi0VIkVY4mrnG6UXnGNAQqMPP+UrT wx8JlGS5f5QvtheZpLo5rZNQWHsI2Hm+T3oNjErfNORsaqfwO4KGGoKd97yBxBMTRzUl JNpz3zIigzNfoU4NqCDYkvYBYRF/gcqqoUlKsQN6LrmKirq8B//lAoXWy2DTHHBADMDj VXiB8PTKmdo5g4THs6TT40OygXnDgDmWJMqV1bxh+oRTuCgmJtzTpWwHDw2xRjiVKbma JQGQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f9si21166824ejl.52.2020.06.26.17.10.12; Fri, 26 Jun 2020 17:10: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbgF0AGi (ORCPT + 99 others); Fri, 26 Jun 2020 20:06:38 -0400 Received: from smtprelay0177.hostedemail.com ([216.40.44.177]:46550 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726101AbgF0AGh (ORCPT ); Fri, 26 Jun 2020 20:06:37 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 25C3A100E7B42; Sat, 27 Jun 2020 00:06:36 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3351:3622:3866:3867:3870:3871:3872:4321:5007:10004:10400:10848:11026:11232:11658:11914:12296:12297:12740:12760:12895:13069:13311:13357:13439:14659:14721:14819:21080:21627:21990:30054:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: roof26_4408f0826e59 X-Filterd-Recvd-Size: 1693 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA; Sat, 27 Jun 2020 00:06:34 +0000 (UTC) Message-ID: <324448187976fc690ea63f1c18e063fb0b09f740.camel@perches.com> Subject: Re: [PATCH 2/2] staging: qlge: fix else after return or break From: Joe Perches To: Coiby Xu 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 Date: Fri, 26 Jun 2020 17:06:33 -0700 In-Reply-To: <20200626235725.2rcpisito2253jhm@Rk> References: <20200625215755.70329-1-coiby.xu@gmail.com> <20200625215755.70329-3-coiby.xu@gmail.com> <049f51497b84e55e61aca989025b64493287cbab.camel@perches.com> <20200626235725.2rcpisito2253jhm@Rk> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_.