]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: fix warnings in rtw_wlan_util
authorVihas Makwana <makvihas@gmail.com>
Tue, 17 May 2022 14:06:26 +0000 (19:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:44:43 +0000 (17:44 +0200)
commitbf4d9c563238b640b6ef41b785c27ecc8c44ee94
treef3a6741dacca6495a47237f68133fe135a1c8c03
parentc400e3fa343425f36d486d73806e211f70f85965
staging: r8188eu: fix warnings in rtw_wlan_util

Refactor the code to fix following warnings:
    WARNING: Comparisons should place the constant on the right side of the test
    CHECK: Comparison to NULL could be written "p"

Signed-off-by: Vihas Makwana <makvihas@gmail.com>
Link: https://lore.kernel.org/r/20220517140626.3716-4-makvihas@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_wlan_util.c