[PATCH 2/6] ath6kl: use braces on both arms of if statement

Jones Desougi jones.desougi at 27m.se
Wed Mar 12 04:47:33 EDT 2014


That inverts the meaning of the condition though.


On 03/09/2014 10:42 PM, Joe Perches wrote:
...
> -	if (bss == NULL) {
...
> -	} else
> +	if (!bss) {

        if (bss) {

>  		ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "cfg80211 already has a bss\n");
> +		return NULL;
> +	}
...




More information about the ath6kl mailing list