staging: r8188eu: Remove rtw_buf_free()
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 5 Aug 2021 18:37:17 +0000 (13:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 18:43:25 +0000 (20:43 +0200)
commitd48401b8609ff19db0f461759ac6b5210cd81288
treecdab813bee4ad27a16527ec5aaeed9ec58cdce10
parent346d13128a86db4f64e7ffa01527693e0112fb81
staging: r8188eu: Remove rtw_buf_free()

This routine is just a wrapper around kfree(). The wrapper also sets
buffer length to 0, and the pointer to NULL. The length variable is in
the struct to be freed, thus setting it to zero is meaningless. Setting
the pointer to NULL is also not needed.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20210805183717.23007-6-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c
drivers/staging/r8188eu/core/rtw_mlme_ext.c
drivers/staging/r8188eu/include/osdep_service.h
drivers/staging/r8188eu/os_dep/osdep_service.c