Linux kernel staging patches
 help / color / mirror / Atom feed
From: Dan Carpenter <error27@gmail.com>
To: Hungyu Lin <dennylin0707@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/5] staging: rtl8723bs: propagate errno through hal xmit path
Date: Thu, 14 May 2026 11:58:37 +0300	[thread overview]
Message-ID: <agWOvYdEQvHFLXhF@stanley.mountain> (raw)
In-Reply-To: <20260514060323.24895-6-dennylin0707@gmail.com>

On Thu, May 14, 2026 at 06:03:23AM +0000, Hungyu Lin wrote:
> Propagate errno values from rtl8723bs_hal_xmitframe_enqueue()
> through rtw_hal_xmitframe_enqueue() by returning the error code
> directly.
> 
> Also update rtw_hal_xmit() to explicitly map the boolean return
> value of rtl8723bs_hal_xmit() to _SUCCESS/_FAIL, clarifying
> the return semantics at the HAL boundary.
> 
> Signed-off-by: Hungyu Lin <dennylin0707@gmail.com>

I was onboard with this patchset up to this point.  The "Also update"
part legit confused me when I was reading the patch.  I don't see how
that's related.

The second thing which confused me was that I was expecting the patch
to update the callers of rtw_hal_xmitframe_enqueue().  It turns out
that none of the caller check for errors.  This can be fine in
networking, in an xmit error case we pretend that we succeeded and
that the network ate our packets.  Very normal.  However, when I'm
reading the patch I want a comment to say, "None of the callers of
rtw_hal_xmitframe_enqueue() check for errors so they don't need to
be updated and this has no effect on runtime."

regards,
dan carpenter


      reply	other threads:[~2026-05-14  8:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-14  6:03 [PATCH 0/5] staging: rtl8723bs: clean up xmit classifier and propagate errno Hungyu Lin
2026-05-14  6:03 ` [PATCH 1/5] staging: rtl8723bs: simplify rtw_xmit_classifier control flow Hungyu Lin
2026-05-14  6:03 ` [PATCH 2/5] staging: rtl8723bs: make rtw_xmit_classifier static Hungyu Lin
2026-05-14  6:03 ` [PATCH 3/5] staging: rtl8723bs: convert rtw_xmit_classifier to return errno Hungyu Lin
2026-05-14  6:03 ` [PATCH 4/5] staging: rtl8723bs: propagate errno through xmit enqueue path Hungyu Lin
2026-05-14  6:03 ` [PATCH 5/5] staging: rtl8723bs: propagate errno through hal xmit path Hungyu Lin
2026-05-14  8:58   ` 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=agWOvYdEQvHFLXhF@stanley.mountain \
    --to=error27@gmail.com \
    --cc=dennylin0707@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    /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