Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751925AbdLMIOq (ORCPT ); Wed, 13 Dec 2017 03:14:46 -0500 Received: from mail-ma1ind01on0110.outbound.protection.outlook.com ([104.47.100.110]:54343 "EHLO IND01-MA1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751622AbdLMIOm (ORCPT ); Wed, 13 Dec 2017 03:14:42 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=dhaval.shah@softnautics.com; From: Dhaval Shah To: mjg59@srcf.ucam.org, pali.rohar@gmail.com, andy@infradead.org Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Dhaval Shah Subject: [PATCH 3/3] platform/x86: dell-laptop: braces {} are not necessary for single statement blocks Date: Wed, 13 Dec 2017 13:43:09 +0530 Message-Id: <20171213081309.22851-4-dhaval.shah@softnautics.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171213081309.22851-1-dhaval.shah@softnautics.com> References: <20171213081309.22851-1-dhaval.shah@softnautics.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [219.65.63.222] X-ClientProxiedBy: BM1PR0101CA0058.INDPRD01.PROD.OUTLOOK.COM (10.174.220.148) To BM1PR0101MB1441.INDPRD01.PROD.OUTLOOK.COM (52.133.128.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1c8f4606-c10c-4afa-0b77-08d542018dc2 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4603075)(4627115)(201702281549075)(2017052603307);SRVR:BM1PR0101MB1441; X-Microsoft-Exchange-Diagnostics: 1;BM1PR0101MB1441;3:WnzQzthtVERqUw+zYkLsxjS7LgEIpBSypoj6ZN46ULL25jUh20heORxRpXPka/cATN/JM7ajSTptzvWouEzqOgdlvx03QiQS6bJ8vrK46NFHVnaMUsS4ZKx8ssf15MydmJyS8rENUeSYDOwL/dpyvQJL8V1CMzJhaF7k9wJ7G6Y1bSIvaYxrA3msNFcqf7tft3BW9eqqLYnC2SkHurXrHiFu1cj4DEbbIGLqmg68bXzmA23HgSnQ/WC9sHHf7B+y;25:4s3fJEXwNM1vNvlS44TO2bDCjZpA5lrgKNUaF1QTX8YJvMzuNj/S0pFP2YVXu8uiUTOUa6QlGxpj5OyTdRswxdKhZZgcI2XohwLGI/WNSSTEyjdxmSANutCXqlGd/OmIYkqKMvYg3fY0sSwxQ8BFbI28VmnfFYSXfbVuRJ9p9dCfjEoyEmPuXnVIKIflaYbj9QgXJS7riLFGHGfUOgVi11C/4UFEGGTdxjjjmOnxsjqEcZdStGp7/NAA820RF0cpKUf/eApsXtkaCpnTGfUQHhHrov4yq4TuSsvrjq2bNOiVTXP9GbXVsgFDBqV1ksGh96CsxZE4TMT+ejtH3bIvSg==;31:ykRp1lmzQpHjd8gdf3hqZ18oXoG87xmquytSWu6+Z5D6R4ygdaK6NKtyKxKZrdMAKBOIFLKywVli9XfgDNwXVSMFjSXcc1915Ibtf79aCp2k82jYsRlS5okB3jrB0yqxImTPEuNuxv8CqfgITvkbqOOGN3F2Gxil6EiHXQ4ELsS3ooyPhYLKTBfoYj+cKiZlh4Fy5KoulE50xuD/xU29+ARO6MxJIL1v8+BRW3v2MgU= X-MS-TrafficTypeDiagnostic: BM1PR0101MB1441: X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(20161123555025)(2016111802025)(6072148)(6043046)(201708071742011);SRVR:BM1PR0101MB1441;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:BM1PR0101MB1441; X-Microsoft-Exchange-Diagnostics: 1;BM1PR0101MB1441;4:cWmUsfhMbYhKnHvHL66GcgRXRYJy7hw7Hhc8uAW2vaPMdYJ0yQ6SpmjoYtn0AYIB75TfDwCkVXVzdEf2yVndihPyPuD61FjGr5SMuW2NnO3vfuDYIsjA2QMiiS+15Qj7jNgUxibol17FZJ+JBboHzE0lJpuT7hp+IfjSoJfy7m5RquY5/clZ1gzhGVTFZ6UhWJIgtuHOQSFZ/CuKik+I2tVi03RhpM5SVH339R4hBJLLprDFOEicO1hAhmFnh7bjWDvhWRHabEavuoRGS9uBNQ== X-Forefront-PRVS: 052017CAF1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(376002)(346002)(366004)(39830400002)(199004)(189003)(8676002)(76176011)(66066001)(81166006)(50466002)(107886003)(36756003)(81156014)(59450400001)(305945005)(386003)(69596002)(6506007)(52116002)(478600001)(97736004)(6486002)(48376002)(25786009)(47776003)(50226002)(53936002)(39060400002)(8936002)(2906002)(4326008)(68736007)(86362001)(16526018)(6116002)(6512007)(51416003)(316002)(16586007)(53416004)(105586002)(5660300001)(7736002)(2950100002)(6666003)(3846002)(1076002)(106356001)(125773002);DIR:OUT;SFP:1102;SCL:1;SRVR:BM1PR0101MB1441;H:piyush.sibshivalik.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BM1PR0101MB1441;23:bKgIxAel1+QsHdz0wQ8vl6mK5pPhco6aVaoJ0Ck?= =?us-ascii?Q?KSFsq+SVQ+wTlrVBIUATc13Lo/DsnX7Q7PUnTVtecF0MHC1utz09IztFBUgt?= =?us-ascii?Q?Vt51H/O2BRmpp9rE3OLWlbjkDWv4baQcnYxGDAy3utannadqQs3BHCeWaIfB?= =?us-ascii?Q?WwX1ak75GDfpLF4Yilcuvd0xjbh715wf6eBXdCzeVjBkue9fEEmsH07pqer4?= =?us-ascii?Q?WRfolJxu4MlXJbaxrKKdpBizXxwg3rE7807fP+pPutgpzKsxLDxEBeglGfhI?=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CHb/JrARvOJoSEA=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1;BM1PR0101MB1441;6:GUcrtC+83fK8Pc5XEXR+nk0zQIpR/COG8FpfA6r50zmsQPnt2dVLtPiL2WmcPuD+7P8jxhp9K58Pja/hlhDbxZnivCikZJe/fqeyZaLYl38xqutzKAF82HUMpGD3kiMukEoKOpn9W47jzZP4Ou8MHO6KI/U8wKBcer9nY/focgpXK7K7RgFIIt9vxgMQp4Uj0dN4jPBBp0ofzzUw9vZeGX/movTU4YCnGq7VNmOWXCTi0TQAhvLjHXLC+s/wmyW5VCjecEJll1dH3QWpmUiUKkk0bXYaEYTQfa7LxIUwbWmNpNqBJYpUb4WgEGAxlsoXsTocMEXT25nmU9+H/kufQOn4cHv5KGGe4DprKY6sAYg=;5:IS8IHrwY2aWrnwXpS2yZ0uZU2RtD5DAxYxan222BkwDvORY5IVWpvPxhTjtlIZ383+ivGwyiSe8/g/NCkLzN/sSGfl9b4/hoBsHxKHxk/Q1+drqT8SyE3y7ixfnRSEOEYAQue0m/fCdN3MkD6dhoaVHI4DqSaAMLn7qTBJcwSRo=;24:6Q3OIIs+P39U2l91WzRGNAUledjGWmkXhiEvXISN/IgoxRN/GDC6+RQked90uiRhLisSPIp7L2uSbinP/8hrGYsuORkraObl0LrcuCZPy9A=;7:lr4RSp6CdYyQXnzbq8Q65VE6EIBQ6alhDkBonPTVjSoukTXhSJivLTbJ+xfi7AqdcZAwtcdDL5W+pHxEKvI+LbZiiTimZ8PSYNhvEm/qW2bHrzkbpNMtpR4QzFUIUfQU+BQeFMd7OdKfXIU8dX73WS5hfNC4M64woW3ylqC4gnSeB0Ux1XTJzPyZ69kj4U4XNwZzS435C4x+oQPBhTzxSgbw3A22Ru2u2n3Oy3etH9UXi9yGNb4t94Y5WKE7DcyW SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: softnautics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 08:14:38.2560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1c8f4606-c10c-4afa-0b77-08d542018dc2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 17b76cff-50c6-4f7a-9198-dd4afc5f8bea X-MS-Exchange-Transport-CrossTenantHeadersStamped: BM1PR0101MB1441 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 25 Resolved braces {} are not necessary for single statement blocks checkpatch warnings. Issue found by checkpatch. Signed-off-by: Dhaval Shah --- drivers/platform/x86/dell-laptop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c index bf4e73a02b39..21361bfa2b5c 100644 --- a/drivers/platform/x86/dell-laptop.c +++ b/drivers/platform/x86/dell-laptop.c @@ -493,9 +493,8 @@ static void dell_rfkill_query(struct rfkill *rfkill, void *data) ret = dell_send_request(CLASS_INFO, SELECT_RFKILL); status = buffer->output[1]; - if (ret != 0 || !(status & BIT(0))) { + if (ret != 0 || !(status & BIT(0))) return; - } dell_set_arguments(0, 0x2, 0, 0); ret = dell_send_request(CLASS_INFO, SELECT_RFKILL); -- 2.11.0