Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3346881pxm; Mon, 28 Feb 2022 18:04:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRpUXsCD10o0bz/CWCYHwsn02YuV3LoKQEyalrrczeWQs2bbgqGq5XuwH+wvs3DyOdZ0tU X-Received: by 2002:a17:906:30d1:b0:6cf:d160:d8e4 with SMTP id b17-20020a17090630d100b006cfd160d8e4mr17477752ejb.265.1646100274190; Mon, 28 Feb 2022 18:04:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646100274; cv=none; d=google.com; s=arc-20160816; b=DxHC6v5r97l20queNH15xUyLDlcjbnXIISmysb4kGC/QPC7cBTKgo3cIcLmDsfOaHP IotRq4iVipRfK6HBQSye+HIPbK4DhnPBCWtS29Rsm5HgEjO7oLfiABOsQtfcTTDcc0Nt RZ4YtuAWWyb37vBbFNvUI8f3UBXNvrOBoCisK972t0Hcu58AGZLsXpvIyIDBtB9CPbI4 b87A9numzwI1VlhLgjX0q+bERK4NmO98K4lDcqCDQfSEJyQs60u5HOGFJc32H5WVDFoN xBliFBOiMNjiNxgnL3kv9QA31UqYmWyE+yT+Bud9GXy3VTmz0KrKu6nSoJ1O1/z/s/3v RX0Q== 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=4/b7wJVAP1HFgGFYCBivb2J3spCcqvGG2hSB9sjbUjw=; b=vgZJvWOyUFswzvR0IKvq6Xr0PwmA92K+Zp79V5a7NOoLx7RqMFlY1zPjQ0SF3l3v4q Qpx8aTPLRukaCWz7y8lbZqSZe0mxP8dDCLLTywIvf7ccDkhEiKDO9+Ve1tDNVREBBNrp hVTPCfJGS8nZC6NEWBJ4WmaI5nAxXFGH/zb8u+tHaWHSSSj9ESrFPwaHEy6fsTcRLoVC asbO0J6TjcydsPU7hNsq68ZHjOrNUVlzXXYWmhPy7oak0w0POpweDHrANTzec+9oSCVL UgJAegOZEYqKYmAeEL1ZAr38YymW/jmenH9MD+t38XygzW4MaTogfDhD3ZLlkr9WZ5sP E22Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 h10-20020a170906828a00b006d15042389dsi7819426ejx.776.2022.02.28.18.04.16; Mon, 28 Feb 2022 18:04:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231996AbiCABVU (ORCPT + 72 others); Mon, 28 Feb 2022 20:21:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231997AbiCABVS (ORCPT ); Mon, 28 Feb 2022 20:21:18 -0500 X-Greylist: delayed 478 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 28 Feb 2022 17:20:36 PST Received: from relay4.hostedemail.com (relay4.hostedemail.com [64.99.140.35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69C0F60065 for ; Mon, 28 Feb 2022 17:20:36 -0800 (PST) Received: from omf06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id EB8C16D7; Tue, 1 Mar 2022 01:12:35 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf06.hostedemail.com (Postfix) with ESMTPA id 77B9F20015; Tue, 1 Mar 2022 01:12:29 +0000 (UTC) Message-ID: Subject: Re: [PATCH 03/10] staging: wfx: format comments on 100 columns From: Joe Perches To: Jerome Pouiller , linux-wireless@vger.kernel.org, Kalle Valo Cc: devel@driverdev.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman Date: Mon, 28 Feb 2022 17:12:28 -0800 In-Reply-To: <20220225112405.355599-4-Jerome.Pouiller@silabs.com> References: <20220225112405.355599-1-Jerome.Pouiller@silabs.com> <20220225112405.355599-4-Jerome.Pouiller@silabs.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.40.4-1ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: 77muhtja19n3dsratymaanib3ctsb9fr X-Rspamd-Server: rspamout07 X-Rspamd-Queue-Id: 77B9F20015 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX18rc9SVD0a5kXusMoMzjYsxOtCG3ORwyWA= X-HE-Tag: 1646097149-871435 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2022-02-25 at 12:23 +0100, Jerome Pouiller wrote: > From: J?r?me Pouiller > > A few comments were not yet formatted on 100 columns. IMO, none of these changes are necessary or good changes. 80 columns is preferred. Really comments should most always use 80 columns, and only occasionally should code be more than 80 columns and almost never should code be more than 100 columns. > diff --git a/drivers/staging/wfx/data_tx.c b/drivers/staging/wfx/data_tx.c [] > @@ -117,9 +117,7 @@ static int wfx_tx_policy_get(struct wfx_vif *wvif, struct ieee80211_tx_rate *rat > if (idx >= 0) { > *renew = false; > } else { > - /* If policy is not found create a new one using the oldest > - * entry in "free" list > - */ > + /* If policy is not found create a new one using the oldest entry in "free" list */ > *renew = true; > entry = list_entry(cache->free.prev, struct wfx_tx_policy, link); > memcpy(entry->rates, wanted.rates, sizeof(entry->rates)); > @@ -494,9 +492,7 @@ void wfx_tx_confirm_cb(struct wfx_dev *wdev, const struct wfx_hif_cnf_tx *arg) > wfx_tx_fill_rates(wdev, tx_info, arg); > skb_trim(skb, skb->len - tx_priv->icv_size); > > - /* From now, you can touch to tx_info->status, but do not touch to > - * tx_priv anymore > - */ > + /* From now, you can touch to tx_info->status, but do not touch to tx_priv anymore */ > /* FIXME: use ieee80211_tx_info_clear_status() */ > memset(tx_info->rate_driver_data, 0, sizeof(tx_info->rate_driver_data)); > memset(tx_info->pad, 0, sizeof(tx_info->pad)); > diff --git a/drivers/staging/wfx/queue.c b/drivers/staging/wfx/queue.c [] > @@ -210,8 +210,8 @@ bool wfx_tx_queues_has_cab(struct wfx_vif *wvif) > if (wvif->vif->type != NL80211_IFTYPE_AP) > return false; > for (i = 0; i < IEEE80211_NUM_ACS; ++i) > - /* Note: since only AP can have mcast frames in queue and only > - * one vif can be AP, all queued frames has same interface id > + /* Note: since only AP can have mcast frames in queue and only one vif can be AP, > + * all queued frames has same interface id > */ > if (!skb_queue_empty_lockless(&wvif->tx_queue[i].cab)) > return true; > @@ -253,9 +253,8 @@ static struct sk_buff *wfx_tx_queues_get_skb(struct wfx_dev *wdev) > skb = skb_dequeue(&queues[i]->cab); > if (!skb) > continue; > - /* Note: since only AP can have mcast frames in queue > - * and only one vif can be AP, all queued frames has > - * same interface id > + /* Note: since only AP can have mcast frames in queue and only one vif can > + * be AP, all queued frames has same interface id > */ > hif = (struct wfx_hif_msg *)skb->data; > WARN_ON(hif->interface != wvif->id);