From patchwork Thu Oct 20 21:27:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 6414 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp331774wrr; Thu, 20 Oct 2022 14:29:58 -0700 (PDT) X-Google-Smtp-Source: AMsMyM65WqrgRn5H2IYojfmZhw01DzoD/Hyer+PapaVzJYz3SuqqRNz3RYKYhm7KdrungCi535Vq X-Received: by 2002:a17:907:2e01:b0:78d:f24b:7330 with SMTP id ig1-20020a1709072e0100b0078df24b7330mr12561187ejc.604.1666301398221; Thu, 20 Oct 2022 14:29:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666301398; cv=none; d=google.com; s=arc-20160816; b=oPcBYXUQc0pZLzDuODb7HVdcTbMov80wuqgnF3FkuaBhm77SIHgbt9sJyUgBo4iP44 LK0yY99ByBGqaHB0hzeukjOFQp2RZLLhCk2HK9vU2vsU7SwQPadHk/uPZgalOY349dzG 2jZnYuJCQlNW1WT2hsM0T6gBoJVzKdaTACdXb7SOb9vbL3UBipZ9svyuGkj9vUxXE1ot AEG1lRKyKrdLMJX333WaRJTDprkKgxd518wD+KdurekbXpU8sIA4s4CL/lD62JdtrhKl apYziaHEVUNqUF9veBzirBEFLlIG/55W9JaRjjvbFc+AGpOshjh2mCDS+RRuPcCCpRPd pKoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=25cKIl1uYLL1E3kAqkAriP4I+deA+xFIujJCpUAJB1c=; b=Bgsg8zbszd+u3kt13vIUdV0Uz7J7TRTTgYwNMg7xD51jFq2ZTUqUGXzsVllxTjyCVK /sIkf3jQts4LcwIWzfv44qQRI3Su/EJl///Ko1Mc6AiVBccqbg8MpLxw3PmlaScDHt1S W3pVcNgk0trx9eMRAiKssqzqJ9oYcK75CgkYKQTgN9On4F/aEywoq60ZNGdTruyVLASG 5l1SeyobRBis/epjASO2YvJyk4YNRD2bikIUK0Wzmg6wssxRRGWuGAXO6K2TP85qX/U7 ybj65ZSrpGpMUh/zddA8rt3YPUZw0zTWiOZvWYiRBC5+mGfH7QXmQP8PpJ9aCIUJznSs kUzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=JDK6sXJH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id he18-20020a1709073d9200b0078ca7bbf616si20186439ejc.746.2022.10.20.14.29.34; Thu, 20 Oct 2022 14:29:58 -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=fail header.i=@mailo.com header.s=mailo header.b=JDK6sXJH; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiJTV2S (ORCPT + 99 others); Thu, 20 Oct 2022 17:28:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbiJTV2M (ORCPT ); Thu, 20 Oct 2022 17:28:12 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0B6D1B65DC for ; Thu, 20 Oct 2022 14:28:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666301271; bh=osZn+6l7ZcamOnQm1Kj8TWDodwur+Vk/CJgdHGyMLV4=; h=X-EA-Auth:Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=JDK6sXJHHZPm1X1JTA/3n1F0TgXNsvYRopXGLFEr5mI1yLZZ1dz6m4AqcEvcbQYBY evKOVFQUCHJRFrGEfqcp8HQPKUS5emEfNRaIJOHzyLoZLOhy2Jhaifsq2zeW29Pfmb X2gfsMsaAzSo685ocId1avlE15cNXTK52QEj3Ya8= Received: by b-3.in.mailobj.net [192.168.90.13] with ESMTP via [213.182.55.206] Thu, 20 Oct 2022 23:27:51 +0200 (CEST) X-EA-Auth: 0SzVPJnUCFVymnvhYnT+ZBDlwrBjoO0BYlm5VbZ1Sfr7f4NihbYSY1U9y0GZvCNK20pdPkmZbPno2jP9oXOwF2kaZfor+WOo Date: Fri, 21 Oct 2022 02:57:47 +0530 From: Deepak R Varma To: outreachy@lists.linux.dev, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, paskripkin@gmail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kumarpraveen@linux.microsoft.com, saurabh.truth@gmail.com Subject: [PATCH v4 03/11] staging: r8188eu: remove {} for single statement blocks Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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?1747243655062066917?= X-GMAIL-MSGID: =?utf-8?q?1747243655062066917?= As per the Linux kernel coding-style guidelines, there is no need to use {} for single statement blocks. Issue flagged by checkpatch script. Signed-off-by: Deepak R Varma --- Changes in v4: -- None. Changes in v3: -- None. Changes in v1 [actually v2]: 1. Improve patch description language to make it simpler. Feedback received from julia.lawall@inria.fr drivers/staging/r8188eu/core/rtw_br_ext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.30.2 diff --git a/drivers/staging/r8188eu/core/rtw_br_ext.c b/drivers/staging/r8188eu/core/rtw_br_ext.c index d4059f0fc362..b418cbc307b3 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -649,9 +649,8 @@ void *scdb_findEntry(struct adapter *priv, unsigned char *ip_addr) hash = __nat25_network_hash(addr); db = priv->nethash[hash]; while (db) { - if (!memcmp(db->networkAddr, addr, MAX_NETWORK_ADDR_LEN)) { + if (!memcmp(db->networkAddr, addr, MAX_NETWORK_ADDR_LEN)) return (void *)db; - } db = db->next_hash; }