From: Greg KH <gregkh@linuxfoundation.org>
To: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
Cc: linux-staging@lists.linux.dev
Subject: Re: [PATCH 12/12] staging: rtl8723bs: remove unnecessary casts in ioctl_cfg80211.c
Date: Thu, 26 Feb 2026 21:59:10 -0800 [thread overview]
Message-ID: <2026022642-agreeably-paralysis-65c3@gregkh> (raw)
In-Reply-To: <20260226100255.167059-14-giorgitchankvetadze1997@gmail.com>
On Thu, Feb 26, 2026 at 02:02:56PM +0400, Giorgi Tchankvetadze wrote:
> Remove unnecessary pointer casts in memset(), memcpy(), and memcmp()
> calls. These functions accept void * arguments, so explicit casts
> are not needed.
>
> No functional change. Object code verified identical before and after.
>
> Signed-off-by: Giorgi Tchankvetadze <giorgitchankvetadze1997@gmail.com>
> ---
> .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 46 ++++++++++---------
> 1 file changed, 25 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> index 7cb0c6f22bf3..eafedf91fa6e 100644
> --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
> @@ -93,9 +93,8 @@ static struct ieee80211_channel rtw_2ghz_channels[] = {
>
> static void rtw_2g_channels_init(struct ieee80211_channel *channels)
> {
> - memcpy((void *)channels, (void *)rtw_2ghz_channels,
> - sizeof(struct ieee80211_channel) * RTW_2G_CHANNELS_NUM
> - );
> + memcpy(channels, rtw_2ghz_channels,
> + sizeof(struct ieee80211_channel) * RTW_2G_CHANNELS_NUM);
You changed the style at the same time. While overall a good thing,
please only do one type of change at once.
thanks,
greg k-h
prev parent reply other threads:[~2026-02-27 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-26 10:02 [PATCH 12/12] staging: rtl8723bs: remove unnecessary casts in ioctl_cfg80211.c Giorgi Tchankvetadze
2026-02-27 5:59 ` Greg KH [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=2026022642-agreeably-paralysis-65c3@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=giorgitchankvetadze1997@gmail.com \
--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