Use kernel API crc32_le() in place of the custom getcrc32(). Remove no more used functions and variables after the changes made by patch 1/2. v2 --> v3: Join two related patches in a series because they must be applied in order (first 1/2, then 2/2). Rebase to the current Greg K-H's tree and resend. v1 --> v2: Use cpu_to_le32() to assign native endian return value of crc32_le to the crc variable in little endian byte order. Fabio M. De Francesco (2): staging: rtl8188eu: Replace a custom function with crc32_le() staging: rtl8188eu: Remove no more used functions and variables drivers/staging/rtl8188eu/core/rtw_security.c | 59 ++----------------- 1 file changed, 5 insertions(+), 54 deletions(-) -- 2.32.0