Skip to content

staging: rtl8192e: Remove NULL checks of function pointers - struct rtllib_device

Philipp Hortmann linux-staging lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4staging: rtl8192e: Remove checks of pointer to handle_a.. and handle_b..drivers/staging/rtl8192e/rtllib_rx.c drivers/staging/rtl8192e/rtllib_softmac.c+3 -70 replies
2/4staging: rtl8192e: Remove checks of pointer to LeisureP.. and start_se..drivers/staging/rtl8192e/rtllib_rx.c drivers/staging/rtl8192e/rtllib_softmac.c drivers/staging/rtl8192e/rtllib_softmac_wx.c+3 -60 replies
3/4staging: rtl8192e: Remove checks of pointer to stop_send.. and rtllib_..drivers/staging/rtl8192e/rtllib_softmac.c+3 -60 replies
4/4staging: rtl8192e: Remove checks of pointer to rtllib.. and ScanOpera..drivers/staging/rtl8192e/rtl8192e/rtl_core.c drivers/staging/rtl8192e/rtl8192e/rtl_wx.c drivers/staging/rtl8192e/rtllib_softmac.c +1 more+7 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] staging: rtl8192e: Remove NULL checks of function pointers - struct rtllib_device

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(-)
Signature · 1 line
2.39.2