staging: r8188eu: remove the helpers of usb_write_port()
authorPavel Skripkin <paskripkin@gmail.com>
Fri, 17 Sep 2021 07:18:28 +0000 (09:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Sep 2021 14:36:51 +0000 (16:36 +0200)
commitcfe7937379df540530e4e14166c8b06b954baabf
tree613ee63cf282f64eefd414843156869f860e0c71
parent094813a6bced092243afa0559d637a5cda7779e8
staging: r8188eu: remove the helpers of usb_write_port()

Remove the unnecessary _rtw_write_port() and usb_write_port() and embed
their code into the caller (i.e., rtw_write_port()).

_rtw_write_port() is a mere redefinition of rtw_write_port() and it is
unneeded. usb_write_port() was the only functions assigned to the
(*_usb_write_port) pointer, so we can simply remove it and make a direct
call.

This patch is in preparation for the _io_ops structure removal.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Co-developed-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20210917071837.10926-11-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_io.c
drivers/staging/r8188eu/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/rtw_io.h
drivers/staging/r8188eu/include/usb_ops_linux.h
drivers/staging/r8188eu/os_dep/usb_ops_linux.c