From: Phillip Potter Date: Wed, 18 Aug 2021 23:48:47 +0000 (+0100) Subject: staging: r8188eu: convert only rtw_vmalloc call to vmalloc X-Git-Tag: howlett/maple/20220722_2~2446^2~66 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5349ef4fd59f787feadc44629d4ecf6cad42e312;p=users%2Fjedix%2Flinux-maple.git staging: r8188eu: convert only rtw_vmalloc call to vmalloc Convert the only call to rtw_vmalloc in os_dep/ioctl_linux.c to the kernel's existing vmalloc function, as rtw_malloc is just a preprocessor definition for _rtw_vmalloc. The _rtw_vmalloc function is defined inline and returns a u8, wrapping standard vmalloc. This behaviour is not necessary. Signed-off-by: Phillip Potter Link: https://lore.kernel.org/r/20210818234853.208448-2-phil@philpotter.co.uk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging/r8188eu/os_dep/ioctl_linux.c index c0e66c1949525..ab4a9200f0791 100644 --- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c @@ -4481,7 +4481,7 @@ static int rtw_wx_set_priv(struct net_device *dev, return -EFAULT; len = dwrq->length; - ext = rtw_vmalloc(len); + ext = vmalloc(len); if (!ext) return -ENOMEM;