From patchwork Thu Oct 20 07:54:03 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: 6026 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp128147wrs; Thu, 20 Oct 2022 01:09:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4lrv/u0ZiqRzPWPyWSjxfOjlyiruTw84HIinyp9YjGj+t3NG42VWj3PLyhVwibUEpATwlr X-Received: by 2002:a17:907:708:b0:77e:ff47:34b1 with SMTP id xb8-20020a170907070800b0077eff4734b1mr9488289ejb.493.1666253346705; Thu, 20 Oct 2022 01:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666253346; cv=none; d=google.com; s=arc-20160816; b=FMdSHIEqP19+Y8bIAk3HQWZoWPeiB4nQx8HXtLq+vVDYW7IYnDiVLgNafnqlxUDBRI jnIbSBZYnFABGMgCAr0BZPwizfOc0NTZXD2bTzq0P+mK8LlFsPpGFgxZHrWTseKfcbTR Yu9tx10pGbjruvILmrCNx3VYiCskuWffN4ffRvrNAiauqNlp0QrCaSbVJZEnadyrsg3A HFKeSCZ/7ng8DjHYxfOn/y/1SJkb9ADXYie4JiTmRIAW1urjlYJp1mOfEhlKV8OUe9zz k7fZ79FodV30tmNtgYmIZ0G+bHZTPcrG8wBNRYllG2XDBBGYkfqOR6bK+kJZDfi6bcWw quOQ== 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=TFr4hFaihVRj7rgc37E+rHnmzgR4xx/DoVmbAhSv/co=; b=Un8OJbvfYrY8LPPMVCUl68X5hzjnP+Qys4vUWUvaho4ueX72OYooojVaOvebsTamXP KSON7YL7hGgO+pdh+SJbEr3n3ClJwOAIB4ybI8zEWhoio8ybQFACUPYPPoiLZuiMssf2 fTT0mynQCa0xkp81YOEfD024c8/i73rJglnjenZKj/t/1hvsn2lnygEBTENLCcGdJssw hZ6t5V9hd7DZCtqPQkgVnonUStO/pKjFcw3ZcFzBWwTfmjJg+uaHj3Fbw8S9XjfVws9U jF8g0CbH0Eas3AiifhBOGnoMF79t5xXoYeimSwSPXj45iYCxx4vCnXJwYXpuo52KI4gU cg3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=Q+uXmpke; 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 a13-20020a170906684d00b00788a4c018b5si13017538ejs.806.2022.10.20.01.08.18; Thu, 20 Oct 2022 01:09:06 -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=Q+uXmpke; 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 S230523AbiJTHye (ORCPT + 99 others); Thu, 20 Oct 2022 03:54:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbiJTHyb (ORCPT ); Thu, 20 Oct 2022 03:54:31 -0400 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5842B260B for ; Thu, 20 Oct 2022 00:54:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666252447; bh=GOHbeyhbpiWqUIeLgoO3djV5sPwClY/EXzZLrrc0xgI=; h=X-EA-Auth:Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=Q+uXmpkedC+0AAd9mJ0G79pngGlKQwiIkaAzEkYVSEwQ8TuKCeP/1LsK/TzbXauSk 0SJYVyrnNtI84JTYdyEMeGs38LSZqyoJlbR8f+cfLdYp6JT/cUk2XlysYkZhC+2qV1 Tmjix8qcWtA4fTn7WMYlB39xZqIvm5nvhwc3iE5U= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via [213.182.55.206] Thu, 20 Oct 2022 09:54:07 +0200 (CEST) X-EA-Auth: lBtzwUmq7xiKtOzyvHN69sq3v1ryWUyhapouZYaD82HQ6FHSZOZkFlSjW6wztT01LluNiNa6J2ce0Io+iiJpDuLvD0DLFBJR Date: Thu, 20 Oct 2022 13:24:03 +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 v3 03/10] staging: r8188eu: remove {} for single statement blocks Message-ID: <0e18149144533a749e30d97b0051cff384016cf1.1666249716.git.drv@mailo.com> 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?1747193269107002583?= X-GMAIL-MSGID: =?utf-8?q?1747193269107002583?= 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 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 8b1c9fdf6ed2..14797c2d6d76 100644 --- a/drivers/staging/r8188eu/core/rtw_br_ext.c +++ b/drivers/staging/r8188eu/core/rtw_br_ext.c @@ -652,9 +652,8 @@ void *scdb_findEntry(struct adapter *priv, unsigned char *ip_addr) hash = __nat25_network_hash(network_addr); db = priv->nethash[hash]; while (db) { - if (!memcmp(db->networkAddr, network_addr, MAX_NETWORK_ADDR_LEN)) { + if (!memcmp(db->networkAddr, network_addr, MAX_NETWORK_ADDR_LEN)) return (void *)db; - } db = db->next_hash; }