• Johannes Berg's avatar
    b43: fix two warnings · df98a496
    Johannes Berg authored
    My gcc appears to be able to see past the function
    boundary and notices that the variable 'behaviour'
    could be used uninitialised:
    
    drivers/net/wireless/b43/leds.c: In function ‘b43_leds_register’:
    drivers/net/wireless/b43/leds.c:339: warning: ‘behaviour’ may be used uninitialized in this function
    drivers/net/wireless/b43/leds.c: In function ‘b43_leds_init’:
    drivers/net/wireless/b43/leds.c:262: warning: ‘behaviour’ may be used uninitialized in this function
    
    because b43_led_get_sprominfo() didn't initialise
    it in all cases.
    Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    df98a496
leds.c 9.02 KB