From patchwork Sun Jun 11 22:21:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tree Davies X-Patchwork-Id: 106163 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2263534vqr; Sun, 11 Jun 2023 16:35:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6EwSO7phGgF57ox38m1jv4lul+JrywxTD30nH42OQ5FwA4qDuJfkht0W4luRQ83yN6uyOP X-Received: by 2002:a17:906:730d:b0:96a:717:d452 with SMTP id di13-20020a170906730d00b0096a0717d452mr8830244ejc.19.1686526545624; Sun, 11 Jun 2023 16:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686526545; cv=none; d=google.com; s=arc-20160816; b=hpte/77cprGILmxazvedpYsKEwnb6zdG6F3oRjoN0mMmqmkrus3edZPWxL0PO4yRYA f96+Y51jW6xjVWn5a7EV/OH3qh+9mF5AWWRVVs8AaYmHrWFgqd1S0BaoJo3AHaL056ZI 8/dzSs79i+vaeMd2BRuv4DsRCioq34TRxDhDvOANAQEJNXHj2YB/8tPeA5YV+C8/8Y/c SJkP4gGobEkTZMtSLv6rlppMt+z5w4h3QHDQF+lQzCUKmhk22BgJXGhr0i8TocldY3Oq Zz529bXDjKrg2/zFvUhq3pkI/KOIOhn+wZuMmSBvm9VxDONIf1Z8X0rI4KuQ8uelexAL 3rkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature:dkim-signature; bh=yxRDp11kkUSCDYPyjLH3eotukV+iNcJUD3d6PD+Nm8s=; b=FWYoOGdUlQj9KtU+oiLQ9bsHeoGNNJL+5t1qMoOMHPuF7IZmJeyNL7hbwghIWDmHcQ NFwL5gCCKGJAGHLCyRwHTEG70Cd0RBN0DvWNpBiq/RiQ5qXUZfSJ4KpUzmJX+Y6D+meS MCr2qjTweOxO6qTS87n6EghgUjx5DDNKl7BnYjzMD/A7OIABnqAUiP9czeTg0Ih2Z737 RWBaSoLItRtRZ9QoF2IY0hSxEYnHELwnRUccfBJ3d6uPSqYotacKW0G7tL4hwZyueA7b Y9hGmSI8QFA3UitAM6qIoo+BtgkcSNwczohVqPGTKqHimDCFI0bh9k7ClwHJVcsF1v1b vBjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=heK9KiFH; dkim=temperror (no key for signature) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=PwEIP3kN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020a170906411700b0096a6f471d61si4786853ejk.1040.2023.06.11.16.35.11; Sun, 11 Jun 2023 16:35:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=heK9KiFH; dkim=temperror (no key for signature) header.i=@darkphysics.net header.s=2019-09.pbsmtp header.b=PwEIP3kN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231910AbjFKWZb (ORCPT + 99 others); Sun, 11 Jun 2023 18:25:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjFKWZ3 (ORCPT ); Sun, 11 Jun 2023 18:25:29 -0400 X-Greylist: delayed 220 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 11 Jun 2023 15:25:26 PDT Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92E84139; Sun, 11 Jun 2023 15:25:26 -0700 (PDT) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id EB5072C298; Sun, 11 Jun 2023 18:21:44 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=date:from :to:cc:subject:message-id:mime-version:content-type; s=sasl; bh= z+Ge1TsISNeopxsJaxZvRckLuWJjsX/bscizidOYUHY=; b=heK9KiFHa98/9xb4 Syl79BqHipP7Lfncug0ygiCXtGxjxFZzs/LbKGIRTItHGW6Vdst280cqrA2Y8QcF o2xIp1zTreYsYEsmccLEZGou1O+35Kw+cyAxfTaqke52jsj1CSD6UH2i4WYwGc5I dH+3B/SUiLhBYcS15Xtb1X3BkPc= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id E2BB22C297; Sun, 11 Jun 2023 18:21:44 -0400 (EDT) (envelope-from tdavies@darkphysics.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=darkphysics.net; h=date:from:to:cc:subject:message-id:mime-version:content-type; s=2019-09.pbsmtp; bh=z+Ge1TsISNeopxsJaxZvRckLuWJjsX/bscizidOYUHY=; b=PwEIP3kNnqBbKve2G14PXwGOp/iZ8K1Iqj4naiQfNCPFmd9UlHLZFnen7JiGog0ylJYgKQLw04J06/i8b5g60IBYwDnwIPLVWBlXvmOlArRKXX+J3cum56pklDaPkHCrkGmTAuJgQjLIXoEIfxD3lrjROKHKvXx4XpLy4hqCFMg= Received: from oatmeal.darkphysics (unknown [76.146.178.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id C31E22C295; Sun, 11 Jun 2023 18:21:41 -0400 (EDT) (envelope-from tdavies@darkphysics.net) Date: Sun, 11 Jun 2023 15:21:36 -0700 From: Tree Davies To: anthony.l.nguyen@intel.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: tdavies@darkphysics.net, intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/e1000: Fix single statement blocks warning Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Pobox-Relay-ID: 57659C30-08A6-11EE-AE76-B31D44D1D7AA-45285927!pb-smtp21.pobox.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NO_DNS_FOR_FROM,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768451259025769953?= X-GMAIL-MSGID: =?utf-8?q?1768451259025769953?= From e92897ab5e93b8827d1654a0171bc53ab478ce49 Mon Sep 17 00:00:00 2001 From: Tree Davies Date: Sun, 11 Jun 2023 14:41:31 -0700 Subject: [PATCH] net/e1000: Fix single statement blocks warning This patch fixes checkpatch.pl warning of type: WARNING: braces {} are not necessary for single statement blocks Signed-off-by: Tree Davies --- drivers/net/ethernet/intel/e1000/e1000_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index da6e303ad99b..accc2bd7c35c 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -259,9 +259,8 @@ static int e1000_request_irq(struct e1000_adapter *adapter) err = request_irq(adapter->pdev->irq, handler, irq_flags, netdev->name, netdev); - if (err) { + if (err) e_err(probe, "Unable to allocate interrupt Error: %d\n", err); - } return err; } -- 2.30.2