Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp989488pxb; Fri, 15 Apr 2022 17:34:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1cTn1VshXw+wC6Ve8f9Gudkq/yNpPe88gUu+Dte9zgv8f+8w33uKtyWv9WEDanNUlDNry X-Received: by 2002:a63:3f0e:0:b0:386:1d94:312a with SMTP id m14-20020a633f0e000000b003861d94312amr1125643pga.317.1650069284332; Fri, 15 Apr 2022 17:34:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650069284; cv=none; d=google.com; s=arc-20160816; b=YaR8GRE+sijR+Cg8ReVlBubznYjFUGBz3qEQfIC83AdpB7yl+HWjH/J/XcNoB+ELyk 1Aiohe9un9Ydr5JabT2phOS24xxktFjo8Wy8w2YvM/6PEd/YinLpOqLyobmp251j9cej Un//w6mg04oN2JfW/Aalxoew2E0ens08XpaEiSTbXgo8IY2llvCKIp5678vFTpOot84m K158lv0LWdPQvp7fusujI0+EUBz3xPaGv5IU6sBHIEJTtqJ+oLFaGnihwSxs20Eoa9b6 WJ8L0Jzc4ZrsTnbAiSjymja2lKgbGlNTU9tP8kAV5etOEp3/XKUo0Twcckpq2/5jPRac 6p8w== 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=yL9/UIL982jnwFL4yczTgqRaZlbJCY9QhpIXC00WZqw=; b=lDe+i4tUIyqR8dFcbkKBlANdB0QnDjgXXfm67yHovaMSmqJzo7W283Qx0Jzexh3P4L 89OkAxXHficfCLiJ9+YUWUCDCARy/R2kGmrv/Zk3plp84CNlZ7MQcdQODC/NGSRhz7XM av2zu+tT+iL5m3gbuX/OAkTRn9xBlUqjLkPTentBDbcp7o2uIBgmBZbdAEmnXSFzvIyk LKvuYRX1pEb660d4Wn9lZ2o67A86FliESanK6gCvexc/U354tG6sHmLB+8wZrtRcv+5b rjqC04X/hr4qBE3yeX9KsCx79pVaCuA980aYE+PjCnEHcb2Ia2k8Vs2OWiMEjcGCs18J YRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SQDCH2eX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j13-20020a170903024d00b00156b61578bdsi2983011plh.182.2022.04.15.17.34.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 17:34:44 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=SQDCH2eX; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C444EA756; Fri, 15 Apr 2022 17:30:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345758AbiDNTnw (ORCPT + 99 others); Thu, 14 Apr 2022 15:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235603AbiDNTnu (ORCPT ); Thu, 14 Apr 2022 15:43:50 -0400 Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51AC1AC050 for ; Thu, 14 Apr 2022 12:41:24 -0700 (PDT) Received: by mail-qv1-xf2e.google.com with SMTP id a5so4920957qvx.1 for ; Thu, 14 Apr 2022 12:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yL9/UIL982jnwFL4yczTgqRaZlbJCY9QhpIXC00WZqw=; b=SQDCH2eXbnV6ThaqWQZY8N5NxsV2cc0btmkPWX9ZdhfGbQ8negud7uKiAMm6D0enDK GtwUxBUoFT3TkdVQmK7JDQQH7UdrBoxVwwA5CT1SdTP5Fi7xuZ2Tsb4YKQh/2UioZ89d a10kmA4refMtnqO9FcIb9lxA2gFAykJZqK3zqPa8eOd0vQOegR2C//dMDhhUA5y+Sz5D gHmV3Bp/udHH0tUXylkdfBs7dC2BrqJW4FmFSZDGYze+F//D4l/u7AsjOvk1EWD+kdkH Q5aAavNJj5WRZJGdZzJKPK2awBB4GPJmuvy4s561szrhomyBz01wS7V8DjR1iFgfeStc TRXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yL9/UIL982jnwFL4yczTgqRaZlbJCY9QhpIXC00WZqw=; b=wfCHKjTuB9mCxEuiVLP/1NW5rlSYzOXR8rqiqf74QdHYW9itOFn9k3VU8doUY+fJpy yZaTtSGC3P4CwxKsGsLnJSnD+CqVTQ9ODBdBDS8JhJT6l8QGeeYYMsIAyE1eiV+2kYqG hsKlUxHOq9QDagSbvJv7gdPii27chaanGIq2w//QNJ0uWpFYuboHX83yTf3anF2pXN9t ZKY0qUp4Lib1PU8utV6IRmFzniZPs9gm4TTuvON37uB38YULL+REK/1UswqrR995Tw8J vMWnkDMJkj58Teyb5t3VS0gHNtuV5zSxpKtakAi/mVly34FAsczybJW5HPMYqb+4ncnU 82MQ== X-Gm-Message-State: AOAM533FEVwaZl84SQsUgY4K+01sfL7qNQY88aGH36RiBepsU1XNBMQ+ +2R+A0qb0qkxfASNHK9MuhnBdcw4d+A0ZDgo X-Received: by 2002:a05:6214:1194:b0:444:45d6:d79d with SMTP id t20-20020a056214119400b0044445d6d79dmr4847812qvv.36.1649965283442; Thu, 14 Apr 2022 12:41:23 -0700 (PDT) Received: from jaehee-ThinkPad-X1-Extreme ([4.34.18.218]) by smtp.gmail.com with ESMTPSA id e126-20020a376984000000b0069c86b28524sm577567qkc.19.2022.04.14.12.41.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 12:41:22 -0700 (PDT) Date: Thu, 14 Apr 2022 15:41:18 -0400 From: Jaehee Park To: Pavel Skripkin Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH 1/6] staging: r8188eu: remove unnecessary braces in single statement block Message-ID: <20220414194118.GA4144553@jaehee-ThinkPad-X1-Extreme> References: <4a0f2a0f24321c5b2039f0f8e6132cec4a2ef068.1649880454.git.jhpark1013@gmail.com> <3f4a6c08-4434-1865-bc96-984152af5af1@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f4a6c08-4434-1865-bc96-984152af5af1@gmail.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, Apr 13, 2022 at 11:24:46PM +0300, Pavel Skripkin wrote: > Hi Jaehee, > > On 4/13/22 23:11, Jaehee Park wrote: > > Remove braces for single statement block to minimize the number of > > empty lines, without loss of readability. Issue found with checkpatch. > > WARNING: braces {} are not necessary for single statement blocks > > > > Signed-off-by: Jaehee Park > > --- > > drivers/staging/r8188eu/core/rtw_mlme.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c > > index 3e9882f89f76..d3f4d7cdfa08 100644 > > --- a/drivers/staging/r8188eu/core/rtw_mlme.c > > +++ b/drivers/staging/r8188eu/core/rtw_mlme.c > > @@ -112,9 +112,8 @@ void _rtw_free_mlme_priv(struct mlme_priv *pmlmepriv) > > rtw_free_mlme_priv_ie_data(pmlmepriv); > > - if (pmlmepriv) { > > + if (pmlmepriv) > > vfree(pmlmepriv->free_bss_buf); > > - } > > If pmlmepriv is equal to NULL we would die in rtw_free_mlme_priv_ie_data(), > so this check is just redundant > Hi Pavel, thank you for your comment! If I'm removing this if statement, should I include vfree(pmlmepriv->free_bss_buf) in rtw_free_mlme_priv_ie_data? > > > > With regards, > Pavel Skripkin