]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: wfx: simplify variable assignment
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 17 Dec 2019 16:14:55 +0000 (16:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2019 14:56:02 +0000 (15:56 +0100)
Attribute "aborted" and argument "aborted" are both booleans.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-20-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/scan.c

index 35fcf9119f96be95d71ba797a8daf7c909886ac7..a6c93400a7bad619eedd5b08b0bf70414a048ca3 100644 (file)
@@ -16,7 +16,7 @@ static void __ieee80211_scan_completed_compat(struct ieee80211_hw *hw,
                                              bool aborted)
 {
        struct cfg80211_scan_info info = {
-               .aborted = aborted ? 1 : 0,
+               .aborted = aborted,
        };
 
        ieee80211_scan_completed(hw, &info);