From patchwork Mon May 31 07:38:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 451890 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A798AC47082 for ; Mon, 31 May 2021 07:39:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 893CE60C3F for ; Mon, 31 May 2021 07:39:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbhEaHlO (ORCPT ); Mon, 31 May 2021 03:41:14 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:60619 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbhEaHlA (ORCPT ); Mon, 31 May 2021 03:41:00 -0400 Received: from mail-wm1-f71.google.com ([209.85.128.71]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lncW8-000386-Le for netdev@vger.kernel.org; Mon, 31 May 2021 07:39:20 +0000 Received: by mail-wm1-f71.google.com with SMTP id o23-20020a1c4d170000b02901988447856bso2063030wmh.0 for ; Mon, 31 May 2021 00:39:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rqhoxm5CLlbJM/5GAddet7UbrdiBVjWGcbVsawnnnn4=; b=aYDlTOXgpQOWQmyD4UEBBTuZMVRk0f3HkDCCB+fdLe0derufBa9HatDOqVZd7ar3jb HwURxLcHiqQJBvccS9kuA7k9Cahy2MA8Wx1LYZeT2SCJ4fZ1rz18skg/rI6U2+ZkB8XL kkv3wv6VFt5EO4yz7rLaHnBAy1bz1gfgL4ozjbyzXSxaYUXadsirE2NTEDhp90smU1C6 BoyBfu1HyC+q6lwk3PJa/kReHgYExhQZtQdtzXUBkZP6wugt21aSBtoKEiVcZbJzDcLs BxXIHTNh7DARgIfbYfs/XQN1TmUcFJhX4WYK36DMIs0ihWR11N+Bl4MsN0ItE0MPTIvp AYOw== X-Gm-Message-State: AOAM5306Rdl2KjgMElvyV3jdrZOsCO8Q/TQZWmaDp4AA+nA7XUQplAZ6 pBZupIH1hbmp1kwYPya1UIn5YxW0dRuTfYDoh+4FMyFBkPTM901SVJx/jaX1P110YR8vZIZdAAx xcOcJYsBnxTnd3jJbqgT6X7SeXFDVCy8IqQ== X-Received: by 2002:a1c:4304:: with SMTP id q4mr4723193wma.89.1622446760489; Mon, 31 May 2021 00:39:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3sisp3Wo09P8lmTnXy6HbSldTGXnsq3kSNvNn0N2+ZhFPrlfzfkHfeYDOg39Tl+QlYG3WJQ== X-Received: by 2002:a1c:4304:: with SMTP id q4mr4723180wma.89.1622446760345; Mon, 31 May 2021 00:39:20 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-185-9.adslplus.ch. [188.155.185.9]) by smtp.gmail.com with ESMTPSA id a1sm9168911wrg.92.2021.05.31.00.39.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 00:39:20 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 07/11] nfc: pn533: drop unneeded braces {} in if Date: Mon, 31 May 2021 09:38:58 +0200 Message-Id: <20210531073902.7111-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210531073522.6720-1-krzysztof.kozlowski@canonical.com> References: <20210531073522.6720-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org {} braces are not needed over single if-statement. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/pn533/i2c.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c index bb04fddb0504..e6bf8cfe3aa7 100644 --- a/drivers/nfc/pn533/i2c.c +++ b/drivers/nfc/pn533/i2c.c @@ -192,9 +192,8 @@ static int pn533_i2c_probe(struct i2c_client *client, phy, &i2c_phy_ops, NULL, &phy->i2c_dev->dev); - if (IS_ERR(priv)) { + if (IS_ERR(priv)) return PTR_ERR(priv); - } phy->priv = priv; r = pn532_i2c_nfc_alloc(priv, PN533_NO_TYPE_B_PROTOCOLS, &client->dev);