]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: remove function _rtw_zvmalloc
authorPhillip Potter <phil@philpotter.co.uk>
Wed, 18 Aug 2021 23:48:52 +0000 (00:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Aug 2021 05:42:57 +0000 (07:42 +0200)
commit1c6bcab5b7ddb8357432489e0c688159b2dc284c
treec4c7ddef74003326479443f96632117d5528adc2
parentc3b61fbc677fa82bdc2f852815facf477bb9bc8c
staging: r8188eu: remove function _rtw_zvmalloc

Remove the function _rtw_zvmalloc from os_dep/osdep_service.c, as this
function is now unused and is just an inline wrapper around vmalloc
which zeroes out the memory. All previous callers have been converted to
use vzalloc. Also remove the declaration from include/osdep_service.h.

It is considered generally bad practice to declare functions as inline in
the majority of cases, as not only can this qualifier be ignored by the
compiler but the compiler generally makes good decisions about inlining
anyway.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210818234853.208448-7-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/osdep_service.h
drivers/staging/r8188eu/os_dep/osdep_service.c