OSDN Git Service

Staging: rtl8192u: ieee80211: Fix coding style warning
authorPuranjay Mohan <puranjay12@gmail.com>
Tue, 14 May 2019 17:30:19 +0000 (23:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 May 2019 05:40:41 +0000 (07:40 +0200)
Remove braces around a single if statement to fix following
checkpatch.pl warning.
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c

index 0e762e5..1ab10d8 100644 (file)
@@ -2577,9 +2577,8 @@ static inline void ieee80211_process_probe_response(
        spin_unlock_irqrestore(&ieee->lock, flags);
        if (is_beacon(beacon->header.frame_ctl)&&is_same_network(&ieee->current_network, network, ieee)&&\
                (ieee->state == IEEE80211_LINKED)) {
-               if (ieee->handle_beacon != NULL) {
+               if (ieee->handle_beacon != NULL)
                        ieee->handle_beacon(ieee->dev,beacon,&ieee->current_network);
-               }
        }
 
 out: