Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp668803lql; Mon, 11 Mar 2024 13:47:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX1tju4Il3tWpjZvllJe2RfhUsostWADS808gr6QXNJ5C14wHbAkiYFDTWIcASgT4uZGNXOslKmsif3/xEm8zDNFTnksWezAaezlB/E2w== X-Google-Smtp-Source: AGHT+IFtv8PtdUpzu2R3kpYpHcy1HTfXbdCAKMNJbDfMPrhlt5tnh4SikoloWdGIO45ApPaJUTOk X-Received: by 2002:a17:90a:6f83:b0:299:595a:e64b with SMTP id e3-20020a17090a6f8300b00299595ae64bmr4740172pjk.44.1710190036246; Mon, 11 Mar 2024 13:47:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710190036; cv=pass; d=google.com; s=arc-20160816; b=wl1gmT7CUpP7EjEXulFICifG9Q9K/nlO2wcHf/eRobHw5RZxYjEiq4waefGkA0aRip GgOorAoYwERg0YXlooaTD4AryWOlZhPRpB8+kHy49dLv8x77ACi6zsqAxnPMm5YYUx0q tYj7uKc50lSDOI2awlvDKo/ZHjXpduubxsx1V9h07AijXhVwAFEedD00kEdYH0/IF7Y4 RERp+HWlpMmQP1c336k7QiO+6yAMsakh2q2zVSxZdxKdfH9Ao0yZjzqv0tdibNI+dRx5 tlulC9sZaBCPJi5uSvlmC0l22at+MqzYCsq6x1VZbmDDNCtgBCDeBuNKMmaQaU4A12ms hv7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=UxyrIsgqNyhoQiWr/nMWx3jRYkmIAK+lVYg1CgDwTXM=; fh=CS0lOBiRLwFCZY02p4g9LkcLpcuBM6NEq5r5YLSyVeA=; b=KHPWIwrK7TYAO3zW/cQuKIbkoICQHLTuhuU/xkaO8j6PwiHt9EP5XXiIrqenDF5D/l ygbNs3GTcAeKUCMcpwN2sDbIIEV6IKBpPZUkVtRN9ah3K8Q9y96Zhs9WqCSML7mwG1sX 5lXBdQ8aMNX0G4vAKghafkeu3sgJkOatY+n0+5b3m8IHfpNu73kbjbhijLYE2afpgo1e KTG8mqYrEMDNsq6BymtR8Z7Talf0fIWbHjOZaeIrmXv+oydkEScNUCgzpUnLrOzsHTwF UUaCZDsjLGg9qqFtlgvraEh9LM+DAFuDq4olPj+W9ttwWjgQOZz3oFUvR407AiPwrP3p YmGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=kn7LzldE; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-99535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id n12-20020a17090ac68c00b0029bbba2246dsi6350154pjt.91.2024.03.11.13.47.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 13:47:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=kn7LzldE; arc=pass (i=1 spf=pass spfdomain=inria.fr dkim=pass dkdomain=inria.fr dmarc=pass fromdomain=inria.fr); spf=pass (google.com: domain of linux-kernel+bounces-99535-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99535-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E5368282100 for ; Mon, 11 Mar 2024 20:47:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3598956B71; Mon, 11 Mar 2024 20:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="kn7LzldE" Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1CBE354FA1 for ; Mon, 11 Mar 2024 20:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.104 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710190011; cv=none; b=DjWTk96vSwZaCDzjXII+P7XslSUcoKp3L58XIoYhYDDS9nkFjKrV6ZPuGWGeaTQi1v2S6cZ5p+RQKNOvDgrou7EtWTuxQIwy8MHjk6Nv1cYnoS5POLBMZ2N9vzYFkYtF87DZrbIxk5mpL1/FpNDys+mAj6AOf574pm0R2xXFe2c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710190011; c=relaxed/simple; bh=GL8gtGxJFo4rRuGjv65ntVbUl3g/4tkAZDn4iD3WG+g=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=oFN2VJKVXYCTs8tRKCj9fdnZlcRmJjetk9plQUkUx4oiaZ0TKXrJaJqgfZa87UNeznT+F/UoKf4MPjZZgyfh0ei5fzjbBeP2kmU6v8CUGBlt4Syy0lRT0/dNaRTEbT04mKOkd/Zg2Mnf5JBmf6HuhS9azm8qDvcgvYzAtODD5s4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr; spf=pass smtp.mailfrom=inria.fr; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b=kn7LzldE; arc=none smtp.client-ip=192.134.164.104 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=inria.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=UxyrIsgqNyhoQiWr/nMWx3jRYkmIAK+lVYg1CgDwTXM=; b=kn7LzldE/uGw6D5aRqFQgu9J6KyWDUYUfiZUEbfhvym3wZVpa11CWDaL arj4iqlpT6h81UPWe9v89hafcBzQx9cNGXfLa/bo5ogumIMibJFATLwEJ HrwhKlYnugMd2AmcLpEcfqH4ApL2N6A5jpNo7L1PJ5Ax1CQ12ERABzBPt w=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.07,117,1708383600"; d="scan'208";a="81848605" Received: from 231.85.89.92.rev.sfr.net (HELO hadrien) ([92.89.85.231]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 21:46:39 +0100 Date: Mon, 11 Mar 2024 21:46:38 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: Philipp Hortmann cc: "Felix N. Kimbu" , Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Subject: Re: [PATCH] staging: cfg80211: Remove parentheses prism2_get_station In-Reply-To: <5f6b7fad-5ad3-44a0-9e10-3e1c13109abd@gmail.com> Message-ID: References: <4936c555-2c53-d421-126c-48804a26887d@inria.fr> <5f6b7fad-5ad3-44a0-9e10-3e1c13109abd@gmail.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII On Mon, 11 Mar 2024, Philipp Hortmann wrote: > On 3/11/24 18:05, Julia Lawall wrote: > > > > > > On Mon, 11 Mar 2024, Felix N. Kimbu wrote: > > > > > Remove unnecessary parentheses around 'wlandev->msdstate != > > > WLAN_MSD_RUNNING' > > > in static int prism2_get_station(...) > > > > You don't need the name of the function in the subject line. That > > information doesn't help understand the patch. > > > > julia > > Hi Julia, > > I think we do not need the function name in the subject but we need something > to distinguish between the patches. The subject line needs to be a little > unique. Otherwise we will have 100 patches like "[PATCH] staging: cfg80211: > Remove parentheses" when we are unlucky. Any better proposal for a Subject > uniqueness is welcome. > > Function name for this purpose is OK for me. OK, no problem. thanks, julia > > Thanks for your support. > > Bye Philipp > > > > > > > > > > This change ensures adherence to coding style guidelines. > > > > > > Signed-off-by: Felix N. Kimbu > > > --- > > > drivers/staging/wlan-ng/cfg80211.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/staging/wlan-ng/cfg80211.c > > > b/drivers/staging/wlan-ng/cfg80211.c > > > index 471bb310176f..7451fd2bb580 100644 > > > --- a/drivers/staging/wlan-ng/cfg80211.c > > > +++ b/drivers/staging/wlan-ng/cfg80211.c > > > @@ -247,7 +247,7 @@ static int prism2_get_station(struct wiphy *wiphy, > > > struct net_device *dev, > > > > > > memset(sinfo, 0, sizeof(*sinfo)); > > > > > > - if (!wlandev || (wlandev->msdstate != WLAN_MSD_RUNNING)) > > > + if (!wlandev || wlandev->msdstate != WLAN_MSD_RUNNING) > > > return -EOPNOTSUPP; > > > > > > /* build request message */ > > > -- > > > 2.34.1 > > > > > > > > > > > > >