public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@linaro.org>
To: Ethan Tidmore <ethantidmore06@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Michael Straube <straube.linux@gmail.com>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 3/3] staging: rtl8723bs: remove unused struct debug_priv and all counters
Date: Wed, 28 Jan 2026 16:17:53 +0300	[thread overview]
Message-ID: <aXoMgTvtGkJkcJmo@stanley.mountain> (raw)
In-Reply-To: <20260127224747.40305-4-ethantidmore06@gmail.com>

On Tue, Jan 27, 2026 at 04:47:38PM -0600, Ethan Tidmore wrote:
> The struct debug_priv is a collection of diagnostic counters that are
> updated throughout the driver's hot paths (RX/TX, MLME, Power Control,
> and SDIO) but are never read, exposed via debugfs, or used for logic.
> 
> This cleanup removes:
> - The entire struct debug_priv definition and its instance in dvobj_priv.
> - All write-only counter increments across the core, hal, and os_dep.
> - Unused local pointers (psdpriv, pdbgpriv) that were only serving
>   the dead diagnostic logic.
> - Redundant logic blocks that only existed to update these counters.
> 
> Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>

So in the end we did remove the struct members, but I expected that to
happen in patch 1 and 2, and I spent some time figuring out if there
was a reason we didn't remove the struct members.

It's hard to know how to break up a patch like this.  I guess you
divided it up into patches which deleted whole functions and then
everything else.  Which is fine...  But you need to delete the struct
members as you go along.

regards,
dan carpenter


      reply	other threads:[~2026-01-28 13:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-27 22:47 [PATCH v1 0/3] staging: rtl8723bs: remove unused diagnostic Ethan Tidmore
2026-01-27 22:47 ` [PATCH v1 1/3] staging: rtl8723bs: remove dead RX info reset logic Ethan Tidmore
2026-01-28 13:11   ` Dan Carpenter
2026-01-27 22:47 ` [PATCH v1 2/3] staging: rtl8723bs: remove dead RX sequence logic Ethan Tidmore
2026-01-27 22:47 ` [PATCH v1 3/3] staging: rtl8723bs: remove unused struct debug_priv and all counters Ethan Tidmore
2026-01-28 13:17   ` Dan Carpenter [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aXoMgTvtGkJkcJmo@stanley.mountain \
    --to=dan.carpenter@linaro.org \
    --cc=ethantidmore06@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=straube.linux@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox