From patchwork Mon Oct 17 16:00:18 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: 3596 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1539659wrs; Mon, 17 Oct 2022 09:33:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7p8Xt1ACARUAyS3tskl0N0rudTr5RtenN4UBfVrZPWc+ZRc1OT4S0Qkk8lHgZ/Sa6pUUnd X-Received: by 2002:a17:906:4795:b0:787:434f:d754 with SMTP id cw21-20020a170906479500b00787434fd754mr9734190ejc.268.1666024406005; Mon, 17 Oct 2022 09:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666024405; cv=none; d=google.com; s=arc-20160816; b=QhHSyt0s7ImE1MxVPcNcJ8OqvlrKandzCJqFtl/QyEpysC8aFs2mJKlEJLE5uwR1We 0a01FjdMBJnnAXddzqn+E+d6QGGDGoVvxH0pnuW0ndT9gFqW6l3BW1zwmJxIhPMOv2qQ /FfGYMjHhDR4EwJvOIAk7AeH1w9sF9h8N7tDVJjyO/lujdrmNL1NuAedRTNM66+sUGwu Z6UhpMxWp2DXH1PUTXJ4kChSM9qIpWDrpU6a2+MDCCl3igNUQBX4aFtk44diGnSNVNzu 9uQVqJ5PXLu/+VQjUELnP1mmrU1vNzi4GHeNmO0isYwYyAaL8cH8qkFdSaEKr6O8Ws7H 9AAg== 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:cc:to:from:date:dkim-signature; bh=qtNDIKZVX7h3y2xN17tCzKNIbXdnRf7L1+OzTTKy9DY=; b=JK4hiRNvQ3seZHawB9pthHl/fxjSRySKqawnAlC+5HykDrC56y9xEmxQK9jGVCmDcw kJdEzVZEYVjS6ynemKrskEJettC47D4mIZTwdJVkbCmTUruzF4uGeCUlqPjAbrwQUppL 9GKXaTaeZslD1dWxQ8QJfQD3M3mDpo7Xh5oTLfDeoyZlcCSD7HJlU+FaecZI41rxvFWw ehOEgaAPnL4+ZnDwiU4Cd/8hGWp1C3sDjQ90rPHeZC6v5nduOkG7XRAtemA3QhKrf0GK 9/BOOpoyquAyLKJlaosnZhi1uwggErEATw7jG9zTGtHPj/k+5+pAauzlcoJJGA+IyDrh rThQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b="X3GBj/hs"; 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 qk30-20020a1709077f9e00b0077a19529760si9663253ejc.65.2022.10.17.09.32.59; Mon, 17 Oct 2022 09:33:25 -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="X3GBj/hs"; 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 S230023AbiJQQaP (ORCPT + 99 others); Mon, 17 Oct 2022 12:30:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiJQQaL (ORCPT ); Mon, 17 Oct 2022 12:30:11 -0400 Received: from msg-4.mailo.com (msg-4.mailo.com [213.182.54.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E5F2A407 for ; Mon, 17 Oct 2022 09:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666024192; bh=fganXA/Ib74G11n9cn4dTun4KYkeNaJm90T7a6DzvNM=; h=X-EA-Auth:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=X3GBj/hsJoB5GrLxm6Q6RVSbtFWYQLofETxY8xZc55VjXJAQjZ6zKopNe3boxq9Bw GO6G68gyx9ncBv2GfhkLgBRzPxB+IDgGVvlApPbdyGjvC1ZEBb88VB/sIfKzqpom5h O1nCPDaHlVEx7JV/QVBcijmh+8cX6HG9V2REU4a0= Received: by b-5.in.mailobj.net [192.168.90.15] with ESMTP via [213.182.55.206] Mon, 17 Oct 2022 18:29:51 +0200 (CEST) X-EA-Auth: YWyD0nVSL0P3+zGMZFq0atI3dki1uT2baqE//vLDdgL2ZSqEGNhsT4WpiLpZP9dmU5qdMr8CKLjjH122aYGJpVO+QctXlddP Date: Mon, 17 Oct 2022 21:30:18 +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 Cc: kumarpraveen@linux.microsoft.com, saurabh.truth@gmail.com Subject: [PATCH v1 3/4] staging: r8188eu: remove {} for single statement blocks Message-ID: <0e18149144533a749e30d97b0051cff384016cf1.1666021212.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 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?1746953207276559939?= X-GMAIL-MSGID: =?utf-8?q?1746953207276559939?= 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 v1: 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; }