From patchwork Thu Jan 13 08:54:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12712448 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29162C433F5 for ; Thu, 13 Jan 2022 08:56:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232027AbiAMI4H (ORCPT ); Thu, 13 Jan 2022 03:56:07 -0500 Received: from mail-co1nam11on2086.outbound.protection.outlook.com ([40.107.220.86]:28322 "EHLO NAM11-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231735AbiAMIz5 (ORCPT ); Thu, 13 Jan 2022 03:55:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OjYudBbbZo41Gjf6bTMptm/REeGteE+wjfW2RCjeGZ2N5OCgUZDew8MwrO07jn3ipm+cjGSDePgnO/VUlg1gYiYPMOJZIUXB3qFrv2hZZkjtLzDTCGNry6e+cpf1n88ZJ2tWmG3RDVmi7B/1fIUMepU6HYRVfSNdHr80pPBc8+pLIj5m9JMAk9iSL1JRjLgPuxaFU07kVIk9RelwZEE6xGWkWXOcbtJt/qi9t8MS50Uf/hA8+YS5XY9By7pUuS9YOiSZxn6TcTN7T+m4VWU6Q91v+YhfMZdSHjyJCHJ8FPjVjJxi4MZrDz3KK73SeMM2KzbP7Esa9sGH+JC+Jp39RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BXntoKDHEKe8j6IFAzofa70DVvtAsRQAIbYKne+fbOg=; b=ADUKQycKTM+LQ3pppvbT6IEnK5D/n1PPeeCGw8qe5tYrlIJaCnIMkLBe8fm3/MrL5EWuCNNHrvw/i2HUj9L8kq9B7OtKVKmlH6HV06d7jnafaJNn3kUBbagUWz4Bp2MNgMxLxXzohi7+Yw7n8WrkMIUuNDumYhWb2kAkR0CquZ8qAWYTPWXE09mwBmAmJv0so8FozKLgkCZtUcL1DZQpaI5fsanRIUPNM7oqhHbh+HPS90AHNfy0CxKHU/IZRo7mDHmpT0diczg93K1KIaejYBpTG4XHIx/JmjkBNhIxspDW9wdUF1/bCATymbm1LyuUYy1blq+ajJmxgojMKsPMAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BXntoKDHEKe8j6IFAzofa70DVvtAsRQAIbYKne+fbOg=; b=KN8riYeru3Y+l2V12ID4eRXbUtU70lmKWqPCeS1gOMGKaV4fx0AUh5mq81eAhp6tpPXe3AyR2mfRkOCwhEv59suNUHYc/3AXwGNCxkXJt/k+wTRIBr7C35g26iDn99UtfbvXIYe2nfMrhXcP++jyuLuS12iMkyRnu8fDbFnrT6s= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by BY5PR11MB4040.namprd11.prod.outlook.com (2603:10b6:a03:186::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4888.10; Thu, 13 Jan 2022 08:55:49 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::d031:da9e:71a:73e4%5]) with mapi id 15.20.4888.011; Thu, 13 Jan 2022 08:55:49 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH 06/31] staging: wfx: remove unnecessary braces Date: Thu, 13 Jan 2022 09:54:59 +0100 Message-Id: <20220113085524.1110708-7-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> References: <20220113085524.1110708-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SA0PR11CA0117.namprd11.prod.outlook.com (2603:10b6:806:d1::32) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 507bf973-549d-4d86-6dac-08d9d6727f12 X-MS-TrafficTypeDiagnostic: BY5PR11MB4040:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4e0GgFUqBJel+ge6+66vI1QM92XgoW4f/fP+X+KvY6q7GbmJLlkaCf4OVRoYaeVkXOGGo1FH1ovd3j7WjNTeqgaK5XKOmpqeampuKfJ+s37UzqGHk/aImgfhob1VVrrCmCXd3nl94yVhJWvc1TeOwGnQsRuPKswWgLPgjajzkm24eANfEk+vLHlH3a6mupmL8ffGPBduns1ovguvkL1zl5reEpftcF7eUOSwgOhIGW3PWwryXum2FuK7dPoql3unnGGDEonrtn2LuOPonMm4xK5jQDguQhcss99WNA+fsev0i5wqEyoPSvks98SZrIwYfDM+2GW3LKyCylqmwON7tYNCnV90M2CwxaF9a5oKiXccoULE3Qm3acooY/yBdNXVUJ+gVua2EUbpeo4ISTb/THN9WFEwVulPHjSAqTgYv+USdaL0mW8WfPn5P36Wktvf02W0V52nJ4GybeqMX/M2Tfd3aG6feXChn8w3KkxUbCBfqePidJhYxaY811KXVtO3sxTLZiopY7k/M4VvnmhafwGtuRAAvgou0gVl9TF6434tQJYgruEYFghhov0DhCZtahE0TtDHXrfVV/JpIAI3w6DwUwRCyeVDeGuhewkJcOyb2zSXFPMw89DldNgoNQUTnYgjlImK68Ft8imT8ZvISQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6506007)(508600001)(186003)(38100700002)(4744005)(4326008)(8936002)(6512007)(6666004)(66946007)(83380400001)(1076003)(2616005)(54906003)(86362001)(66556008)(2906002)(66476007)(316002)(52116002)(36756003)(5660300002)(8676002)(6486002)(107886003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?e+NgJEgJCe+I7Tdzo2/CjEl8fo6f?= =?utf-8?q?3UHZer9oEf0IMJV6zgtPywIVgkSbLIGDIRBtjjoM9HKbswS6FQCHESaoLJ2TdvuXO?= =?utf-8?q?fzQtCNyBrMPyj+n9O/7XuGH1VtwN+b7KUtq1SLupVNeuDwcs32VRCHSBFbSEubbh+?= =?utf-8?q?Qm5jPBHS1vs5t9jfaFIrKbfsTN1wPhLjmfrKJkcErqsEwZ0nlL9JCVrzMxcZB0mY1?= =?utf-8?q?yXJ7vbVPWPMpSsb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ZNnXdnuKPPW0+QzOU6XnVanOkD0HA71FA3qJDzfR5navWbtf6C?= =?utf-8?q?2RyIurSl18fEh1Pw+EoznHBJqMMlIiRLvAzsv2Vig3mE1B24TJ5HoZu6ncX7zTTLM?= =?utf-8?q?Y93RXaHsk9CB5k/fJ0D8heCJv+fH1sD8du0H3Cdkn5Ku4gbERhCbO+fu0HCJsneDc?= =?utf-8?q?w4CI+sMeb3aPvFKYCvdvzQvGabeK1Y5iyadXpd8ggc/KfaV2umzDovNl7e8KdiRsm?= =?utf-8?q?v3rBRBhqb4bKcNYEazH8eLkU5vkLoPnxiGe6CWOu3lvhC5X/uYQbR71vT7rRqA1+f?= =?utf-8?q?JWhEHmv/oEGciW5MkEQBIRUoxw9b5/6weHcCegipaUC3gHmtF1EfwMigtGyVUwBUf?= =?utf-8?q?eO588awGe80Urkt0kaoQGgXAjmUSXbRxDqUmtq8IN2j1Doa3KJP3fVIjTwZ9VgdBk?= =?utf-8?q?zDdH9ibDQry3rPdXNYvqcl7aDfEZkMnFl4u1zqLbqac3SOrO+Lz/yL0fUfcPd59eT?= =?utf-8?q?sQIdvhaljZJPPHQAt7VTnAJXIe4j0W/lZcZwMmGgxAMf/eyWkyz7AY=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 507bf973-549d-4d86-6dac-08d9d6727f12 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jan 2022 08:55:49.8352 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CrpnfjK8PfCG4TBdWch8iHC1vvm1NM1VSD2B+GwBNQ1GcPDjnnME8S2Q2Cm2LcNOxX/M+JWR9RfQAqkKIH/wdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4040 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Braces are not necessary for single statement blocks Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 858d778cc589..ddc95ea16b6d 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -438,12 +438,11 @@ int wfx_probe(struct wfx_dev *wdev) eth_zero_addr(wdev->addresses[i].addr); err = of_get_mac_address(wdev->dev->of_node, wdev->addresses[i].addr); - if (!err) { + if (!err) wdev->addresses[i].addr[ETH_ALEN - 1] += i; - } else { + else ether_addr_copy(wdev->addresses[i].addr, wdev->hw_caps.mac_addr[i]); - } if (!is_valid_ether_addr(wdev->addresses[i].addr)) { dev_warn(wdev->dev, "using random MAC address\n"); eth_random_addr(wdev->addresses[i].addr);