staging: r8188eu: Fix incorrect types in arguments
authorFabio M. De Francesco <fmdefrancesco@gmail.com>
Thu, 5 Aug 2021 13:11:08 +0000 (15:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Aug 2021 18:30:51 +0000 (20:30 +0200)
commit66e9564aae0185eb7f36d946b0ba22b779a4e193
tree65c60ccb6f8527918e4afd69d0ef5e3a2abad42f
parent066eea44c1ea430cabebffc383dcaa861fa9a2b9
staging: r8188eu: Fix incorrect types in arguments

GCC + Sparse emit warnings of passing incorrect type in arguments of
some functions because of different base types. Fix them by changing
the types of the parameters of the above-mentioned functions.
In the meantime, remove the unnecessary casts of those arguments
which are then passed to memcpy() within those same functions.

Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com>
Link: https://lore.kernel.org/r/20210805131108.19775-1-fmdefrancesco@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_br_ext.c