Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1243871pxb; Wed, 6 Apr 2022 12:24:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFa7H4G8fu4RQqiEnEBvJKizRG0DBcAmtqejzo0GiK/3G1SQda/NVr6q6jaJrAHmENTkFA X-Received: by 2002:a17:907:948c:b0:6e7:fe2b:68f0 with SMTP id dm12-20020a170907948c00b006e7fe2b68f0mr9756327ejc.749.1649273086906; Wed, 06 Apr 2022 12:24:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649273086; cv=none; d=google.com; s=arc-20160816; b=0i0EYoA5wS92XE2ULmSS5m92tJLoAmbUmFOaRVI+qNW6FaPYCpfq1/DJDye0X+PnPl P+/aDCjhK4quN/mMgzhLi9Xw0IT60rJ7gQReeROEAo9ynPaVZ1GYNfy2KwFQSS1RUWbn 8jzBWcLSx6KmTOlTKRbmipczFwfvCSBTOhoarIkMccoTtKA5jVYm/xrO/Rfh5d6zAEUj iFxc9UPEwN2y2RLQU48JsH+WwHOEFokr1BrrSkNaOB+0w5vE+Jt2hsH7hAHrOniTi/NW /sSWeanTH3s/M+AteG24fDyRH1g/Ub3/iKaH8+cbV8hqSOEgVC94wS67jhME5WWMjF6v HIHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=/1F2ZTNddXxiJ6B6n7v4F0wQlFBZFHIh/oMC2SE13JM=; b=ouvE+0F6vl4msMh8X/BjuITQpr/Y8pt4e25jLrunY0MEyy7EGp8zvor4nOfdiN096C delm76GT8163lw2NTESlrj+KRv82n2d1+fX9RjAPQwWDpxbAMnUB7PVvqugwEDDoyH+F JSSm82b3MK83nNNF540iR83zTk/qnytyexT9eK635s87IvqLhNNsE/xBBTBNhSndnrls IPsBKb9zxzHpvL6Kx4dDrxzdhsoJU13MEPzEZoew+BEIDf2Lcsk8AfWpVQFQCNH2Yk1K XYDNtceYlBtldKAklkbv2ED1v+Od5nCfSA9/9oLKdOYdvL+wbWA69nXoLJp8+VfeaVBE 8pEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l13-20020a1709065a8d00b006df76385ed9si8139969ejq.889.2022.04.06.12.24.17; Wed, 06 Apr 2022 12:24:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbiDFTSa (ORCPT + 99 others); Wed, 6 Apr 2022 15:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbiDFTQk (ORCPT ); Wed, 6 Apr 2022 15:16:40 -0400 Received: from relay4.hostedemail.com (relay4.hostedemail.com [64.99.140.37]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71EC124A769 for ; Wed, 6 Apr 2022 11:09:01 -0700 (PDT) Received: from omf18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 07CFB2A7F6; Wed, 6 Apr 2022 18:08:59 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf18.hostedemail.com (Postfix) with ESMTPA id 783B831; Wed, 6 Apr 2022 18:08:57 +0000 (UTC) Message-ID: <963000ce7e7c8f94697be460441747f25f9247cb.camel@perches.com> Subject: Re: [PATCH] staging: rtl8712: remove Unnecessary parentheses From: Joe Perches To: Julia Lawall , Alaa Mohamed Cc: outreachy@lists.linux.dev, Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Date: Wed, 06 Apr 2022 11:08:54 -0700 In-Reply-To: References: <20220406152858.14076-1-eng.alaamohamedsoliman.am@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Stat-Signature: 7ebx3n8azbfjsxn1qbw3dag7hmyo373w X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: 783B831 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX19eR1puJVlPgSNNQQO83yH/i+xmSYM57Ko= X-HE-Tag: 1649268537-592042 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, 2022-04-06 at 17:37 +0200, Julia Lawall wrote: > If you want to capitalize something in the subject, it could be the first > word. Capitalizing the second word is a bit strange. > > On Wed, 6 Apr 2022, Alaa Mohamed wrote: > > > Reported by checkpatch: > > > > CHECK: Unnecessary parentheses > > Indicating that the problem was detected by checkpatch is good. But > actually, the parentheses all have the same property. So you could use > the log message to describe what kind of unnecessary parentheses were > removed. That would help the maintainer know what to look for. [] > > diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c [] > > @@ -82,9 +82,9 @@ static inline void handle_pairwise_key(struct sta_info *psta, > > (param->u.crypt. key_len > 16 ? 16 : param->u.crypt.key_len)); > > if (strcmp(param->u.crypt.alg, "TKIP") == 0) { /* set mic key */ > > memcpy(psta->tkiptxmickey. skey, Also, the space after the periods here are not great either. memcpy(psta->tkiptxmickey. skey, vs memcpy(psta->tkiptxmickey.skey,