From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CD23C256C6C for ; Sun, 10 May 2026 19:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778440735; cv=none; b=kxfgSzVbmH+Eo2Ew0lxYr9MS2VXimlnzXfXqxPUXYxNN1V0qgRsqLkh1t6tvzw+9xladNAVxFwm1mYjro62xYcGcj19xMgkI+R1n2KimNRI5fO78jP+boXXIIOp7/S5fEW1xlYvbXxNgucrltRfDlsf8mQglC30cNt8VUkzi5FU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778440735; c=relaxed/simple; bh=/V7kc5wHSUMp0v2Iw6tM5oibUq4snG5Y8HavSdrFjBo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=p5RCFKlAkdZSRRT99vORg/JulyrgOdR1UZviXJIaWbCG/4w4kvIiFvm17/YsBgPLw6G93Y7H2oqWCEssy/OK3KX0An1fbWtyt/1RVy84RP+vn4KgNeCS5CuwHrpHzB4IpjXwC4Vg3bv6JZ98YjYMZAjcnWX56+GhkqGFPvsl3h0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=ACCMyaLZ; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ACCMyaLZ" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-38be5e86918so46394821fa.3 for ; Sun, 10 May 2026 12:18:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778440732; x=1779045532; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FvQ17bgNjYw248Mcj1k6ZXGrauGctP8ioNLDozKkpc4=; b=ACCMyaLZhdeJFCe7C89alRVeymf8qEC90WlnlabKyZpRGeyJ6yrTZS7CTkPZawwk5C DxeOgCi77sELwk1ogV+PFpnmhbX7k88XaNNdIwv6iP5H2YxxcyMYVwS5mEW4I0pYT4BF TOBOlNXse68/JWddpSclK8NOS4it/oIwBzsjFswV2unGUgxVLqdlssg/BeHqwDkvUE+a /HhSyj6se5M0JBvpBlLV1SV0qy9T+aiiUJO9m3cvJ4X5wgX2RscvjCH+LgtGeLOfjo64 05IxzToCaY/E0UBuqWGV4v30I2HsgtMxSsQcmYcoEhzS/wlNcKl2v0VQp3Z1rUxAGtxF 7GFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778440732; x=1779045532; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FvQ17bgNjYw248Mcj1k6ZXGrauGctP8ioNLDozKkpc4=; b=VN8MoTpm0TBuzuTbBm+wIu2Xsn0qfZm5IaxS0nZ60v4AQJ/vQ8mv+njUbbTzAmAf2r ZNv9zmJO9DWEmvw41FkeHPJIuiwbljAh8FKMHXK7WIhqeO6zqHaW4wcE+J84bAnCr+kV i7faVlK+CjfLD1Jv/rMYXqvhLJop5WndVf/iDu3KE2dfBIGI0WBksiWY5sEc13G2rPTT nP7MkJ9+AKuVQa9KvSm4iVHeG9JCU2eIaYSBFAvOlnoObL2gc+ge5+aWyagegAdGL+MO z32MNR6Hh2bMFUxcKc8DaTS7qAJhNe/t1AifiBF6A7OE22RdO9KhHx0tUeSJ2KOo7aQ7 QgiQ== X-Forwarded-Encrypted: i=1; AFNElJ9TGanXXYwn+NuzDQohwRFAU/9xJrfMd8X+jEWRvmffnVf/80PzUhCyMCTPuzZk4bJfPig6K+gVt345AXI=@vger.kernel.org X-Gm-Message-State: AOJu0YxwYNUoh6p1Fod0AMUtItelm8l4yy+orxbuhlQnJX+KtS+cTVI9 MC7LP/b5kxHM7LInFN+ft33Ly/Ut+Nm7y5qx/YuNMBXwCcRLUi0r6LA3jnfQ9Cyd X-Gm-Gg: Acq92OEtczIBbfYshf5F2D3CL4yNcaR5Xr5T8VoKuXVYGQVYRfVqhgNX0W8mN+p3WnN RajG6qDrDxe0exWeE6yBxzrBOF4SPezwDBYBjGVmN0gZI1jXjmQ0no7dwl6M7qaY3UOM295JmTI qMwzlprNDKkKQaGQLyY9f4P2liOcFUnr1UvkwAynQeseI5MPCpHlQev+1tIdCt4OcUHgtEA0m04 TJkr79rfGMtDlQofw5MrE3uwS5ck+kyQ1ZiYnHS/ATKsxHL5S1heFxcWTDpJmp94J70S+DnIBvM lWt1duyFetsquAMbFD3u2UknjiXBv9Pd8h9vE6u8PH5xk9ozn3Y+nAxOZIw8E2nZqTFt45ZOIlD UKX1Rx+rLQxy6ZOsfRGzvqKrJdT1bfX//5ASQKsNtqC87gXJmoxC3neUOI1E0CDAfy5O0OeFixU fYCiCMhG4ymKwXk99Znt+XFQO7 X-Received: by 2002:a05:651c:984:b0:393:9bb7:bc5a with SMTP id 38308e7fff4ca-393c40bc1bdmr70843921fa.1.1778440731766; Sun, 10 May 2026 12:18:51 -0700 (PDT) Received: from archlinux ([185.140.161.214]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-393f5f3a296sm22032601fa.12.2026.05.10.12.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2026 12:18:51 -0700 (PDT) Date: Sun, 10 May 2026 22:18:48 +0300 From: Nikolay Kulikov To: Noah Techoueyres Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: fix line length checks in rtw_cmd.c Message-ID: References: <20260510032936.2852-1-noahtechoueyres@gmail.com> 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 Content-Disposition: inline In-Reply-To: <20260510032936.2852-1-noahtechoueyres@gmail.com> On Sat, May 09, 2026 at 11:29:36PM -0400, Noah Techoueyres wrote: > Fix both block comments and assignment statements that exceed the > 100-column limit to follow Linux guidelines for readability. > > Signed-off-by: Noah Techoueyres > --- > drivers/staging/rtl8723bs/core/rtw_cmd.c | 23 +++++++++++++++++------ > 1 file changed, 17 insertions(+), 6 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c > index c1185c25ed36..a401c856c727 100644 > --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c > +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c > @@ -1117,13 +1117,17 @@ static void collect_traffic_statistics(struct adapter *padapter) > pdvobjpriv->traffic_stat.rx_drop = padapter->recvpriv.rx_drop; > > /* Calculate throughput in last interval */ > - pdvobjpriv->traffic_stat.cur_tx_bytes = pdvobjpriv->traffic_stat.tx_bytes - pdvobjpriv->traffic_stat.last_tx_bytes; > - pdvobjpriv->traffic_stat.cur_rx_bytes = pdvobjpriv->traffic_stat.rx_bytes - pdvobjpriv->traffic_stat.last_rx_bytes; > + pdvobjpriv->traffic_stat.cur_tx_bytes = > + pdvobjpriv->traffic_stat.tx_bytes - pdvobjpriv->traffic_stat.last_tx_bytes; > + pdvobjpriv->traffic_stat.cur_rx_bytes = > + pdvobjpriv->traffic_stat.rx_bytes - pdvobjpriv->traffic_stat.last_rx_bytes; > pdvobjpriv->traffic_stat.last_tx_bytes = pdvobjpriv->traffic_stat.tx_bytes; > pdvobjpriv->traffic_stat.last_rx_bytes = pdvobjpriv->traffic_stat.rx_bytes; > > - pdvobjpriv->traffic_stat.cur_tx_tp = (u32)(pdvobjpriv->traffic_stat.cur_tx_bytes * 8 / 2 / 1024 / 1024); > - pdvobjpriv->traffic_stat.cur_rx_tp = (u32)(pdvobjpriv->traffic_stat.cur_rx_bytes * 8 / 2 / 1024 / 1024); > + pdvobjpriv->traffic_stat.cur_tx_tp = > + (u32)(pdvobjpriv->traffic_stat.cur_tx_bytes * 8 / 2 / 1024 / 1024); > + pdvobjpriv->traffic_stat.cur_rx_tp = > + (u32)(pdvobjpriv->traffic_stat.cur_rx_bytes * 8 / 2 / 1024 / 1024); > } What about adding an intermediate pointer to traffic_stat? This will not only reduce the length of the lines, but will also make the code easier to read. Thanks, Nikolay > > bool traffic_status_watchdog(struct adapter *padapter, bool from_timer) > @@ -1743,7 +1747,11 @@ u8 rtw_drvextra_cmd_hdl(struct adapter *padapter, unsigned char *pbuf) > pdrvextra_cmd = (struct drvextra_cmd_parm *)pbuf; > > switch (pdrvextra_cmd->ec_id) { > - case DYNAMIC_CHK_WK_CID:/* only primary padapter go to this cmd, but execute dynamic_chk_wk_hdl() for two interfaces */ > + case DYNAMIC_CHK_WK_CID: > + /* > + * only primary padapter go to this cmd, but execute > + * dynamic_chk_wk_hdl() for two interfaces > + */ > dynamic_chk_wk_hdl(padapter); > break; > case POWER_SAVING_CTRL_WK_CID: > @@ -1881,7 +1889,10 @@ void rtw_createbss_cmd_callback(struct adapter *padapter, struct cmd_obj *pcmd) > _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING); > > spin_unlock_bh(&pmlmepriv->scanned_queue.lock); > - /* we will set _FW_LINKED when there is one more sat to join us (rtw_stassoc_event_callback) */ > + /* > + * we will set _FW_LINKED when there is one more sta > + * to join us (rtw_stassoc_event_callback) > + */ > } > > createbss_cmd_fail: > -- > 2.53.0 >