From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] staging: rtl8192e: Remove NULL checks of function pointers - struct rtllib_device
Date: Sat, 25 Feb 2023 19:20:14 +0100 [thread overview]
Message-ID: <cover.1677345331.git.philipp.g.hortmann@gmail.com> (raw)
Remove NULL checks of function pointers from struct rtllib_device. This
checks are unnecessary because the function pointers are set right when
the driver is loaded.
Here the flow when function pointers are set:
.probe = _rtl92e_pci_probe
In _rtl92e_pci_probe the function _rtl92e_init is called. In the second
line of _rtl92e_init is _rtl92e_init_priv_handler called that sets all
the required function calls.
Tested with rtl8192e
Transferred this patch over wlan connection of rtl8192e
This patch series requires the patch series:
"[PATCH 0/2] staging: rtl8192e: Remove struct rtl819x_ops that has no entries"
Philipp Hortmann (4):
staging: rtl8192e: Remove checks of pointer to handle_a.. and
handle_b..
staging: rtl8192e: Remove checks of pointer to LeisureP.. and
start_se..
staging: rtl8192e: Remove checks of pointer to stop_send.. and
rtllib_..
staging: rtl8192e: Remove checks of pointer to rtllib.. and
ScanOpera..
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +--
drivers/staging/rtl8192e/rtl8192e/rtl_wx.c | 8 ++-----
drivers/staging/rtl8192e/rtllib_rx.c | 7 ++----
drivers/staging/rtl8192e/rtllib_softmac.c | 24 +++++++-------------
drivers/staging/rtl8192e/rtllib_softmac_wx.c | 9 +++-----
5 files changed, 16 insertions(+), 35 deletions(-)
--
2.39.2
next reply other threads:[~2023-02-25 18:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-25 18:20 Philipp Hortmann [this message]
2023-02-25 18:20 ` [PATCH 1/4] staging: rtl8192e: Remove checks of pointer to handle_a.. and handle_b Philipp Hortmann
2023-02-25 18:20 ` [PATCH 2/4] staging: rtl8192e: Remove checks of pointer to LeisureP.. and start_se Philipp Hortmann
2023-02-25 18:20 ` [PATCH 3/4] staging: rtl8192e: Remove checks of pointer to stop_send.. and rtllib_ Philipp Hortmann
2023-02-25 18:20 ` [PATCH 4/4] staging: rtl8192e: Remove checks of pointer to rtllib.. and ScanOpera Philipp Hortmann
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=cover.1677345331.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@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