Dan Carpenter wrote:
> Hello Sujith Manoharan,
> 
> This is a semi-automatic email about new static checker warnings.
> 
> The patch e6664dff0608: "ath: Add support for tracing" from Sep 27, 
> 2014, leads to the following Smatch complaint:
> 
> drivers/net/wireless/ath/main.c:88 ath_printk()
>        error: we previously assumed 'common->hw' could be null (see line 82)

Thanks.

ath_printk() would be called only if ath_hw/ath_common are setup,
so the chances of common being NULL is pretty low.

But, since we are interested in trace information with a functional
driver, trace_ath_log() can be moved inside the check. I'll send
a patch.

Sujith
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to