Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp552066lql; Mon, 11 Mar 2024 10:05:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEhb/YSIkI4pRYZLDEOpDsAzFS8c1cUTiftTjh0PJxYKJpTIERLigI67Tds+s2FwWjQuVPn0GovyyRP+7Jv+pvzEboogK/3cPub7QxZA== X-Google-Smtp-Source: AGHT+IGC1lPL0Ujf1vxLu4X92CtHxUOZfVu3Sp2994E8KzHIkuGaTK8xVJ7lx23GmkDL1VEVvdXI X-Received: by 2002:a05:6122:16a2:b0:4cb:2930:7470 with SMTP id 34-20020a05612216a200b004cb29307470mr4451231vkl.12.1710176758761; Mon, 11 Mar 2024 10:05:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710176758; cv=pass; d=google.com; s=arc-20160816; b=qfMQWvx/nAbWdrSFCG5+mMOVKn9iJ6auIaMx0c3OKj/1zt6cuAWfpt4y2V+15H5zK+ zg6c+FijiC9L0fUvIjbEUsD25FS3e7t1H+kR16JVfT9CxcqTB0ll9GAAAjhzRbsI6LaL wTDR3dcwSwbhVgjTCuo3Ov0tYP1AJJFAgy+np7qOkS9Hm3nVOpC0ifdoJbS95x4qoVsw eay1SARzDmPdSY8ZlQpR6mkBBlrxRmEoj31XOk2bBKLenqmUVdOiKeUUYXuuH5ShlB0p lw4G7aBvDQJtXyahsLbflVm8JfdqDo1qfZSHUF1C+Zh+9ToM9wFp8ryrJRKB3HkCPDPO KF8w== 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 :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=HTU3RiG+jE1pjwyja6yRPq5p0dcESnWZEFQp5b8GO44=; fh=bVnGMOgVBOI3GUig5gR/PBs2oPj09P99Cqsxs7J85XE=; b=GZT7G1dydHebhTUO91cdULXtAuX+a6G1ukjZ3qriaLX3YBAU2ZrlHu1KYdRoHIvl7z bo3/LGClf/lCB3N6u3yAnuo4Rc8fny8uyx7Xa2BN0beEj1msraQbFaGiNb6JKn7c99tk 2EPsG+RZ0BX02Mlt87wGnSwjr1TbTChjaCEEMXT9UpTaRTLOobiWzLEvMnD5kufzBhqK qhjFmTvfhqFOzChuFPChuhc45igw+c2MJer6Pf/GzT5UxkxJIOG8WpinkInuKdtGkzqD dx48iYyDDC/aMMD6qs6exAGp0znniyF5T630eMpxkKiFNo0grVobZPdtQ217XAm0IUxM v/mw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=e9Thx9Sm; 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-99284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99284-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id t17-20020a67f151000000b00471e26b1a69si550751vsm.218.2024.03.11.10.05.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 10:05:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-99284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=e9Thx9Sm; 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-99284-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-99284-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7422A1C21666 for ; Mon, 11 Mar 2024 17:05:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4F0F4AED1; Mon, 11 Mar 2024 17:05:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=inria.fr header.i=@inria.fr header.b="e9Thx9Sm" Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (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 7E2D14AEE7 for ; Mon, 11 Mar 2024 17:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.134.164.83 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710176753; cv=none; b=GA1zQJGLcOvh8ewdf7d9Lr4Az6Zkxni8QqL2HIepZtnO/W3xaybvvYl7DlNtNIHFC24iwaLZOSnnTtrd6OsNlVYwpmJxQqP0VLIKkwNixbW9blukjfma1ueBaC/MYH8Qpi17RSbSd3X4st/5xkbeJgDraBdAm/WuowtrAE41+s4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710176753; c=relaxed/simple; bh=t1f3oyUTHtqPVyIGHgNS0PwdQP2/tIhGDk5qJE/dCz0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=Hmlf/tLlY7VdgGQoFD+VptjTmn3as+W/KiVRAoj5PHlF3Acpuw1FDuT8Z9IdSQK7DXB7EmV4TVlgxM8/JNOyjBjjf7bR5kOB1NuZLN6u7kGuNBk6yoGTGJ+3/euDqq1Eh7nzsQjkDUP8XqVP2asMDHMVAbkDiHyk02UqWheVZ54= 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=e9Thx9Sm; arc=none smtp.client-ip=192.134.164.83 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=HTU3RiG+jE1pjwyja6yRPq5p0dcESnWZEFQp5b8GO44=; b=e9Thx9SmsX9YQuJpwdSy2vDT+Kw01FDItelYGKiqWq4O2m9w0FcfyeqD WBy8+mDMyflttwloOo+fATgcp5cCWJOQZCBNuzIZDH38pyHXzBBoEL9Bp LVyxK/H38vRlmxQUoTylMbSxevwnmSQApMjA52Ryp1i39/TH5Ns9WQ3e5 U=; Authentication-Results: mail2-relais-roc.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="156088553" Received: from dt-lawall.paris.inria.fr ([128.93.67.65]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Mar 2024 18:05:41 +0100 Date: Mon, 11 Mar 2024 18:05:41 +0100 (CET) From: Julia Lawall To: "Felix N. Kimbu" cc: 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: Message-ID: <4936c555-2c53-d421-126c-48804a26887d@inria.fr> References: 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, 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 > > 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 > > >