]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: list_first_entry() is never NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 13 Apr 2012 19:27:18 +0000 (22:27 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Mon, 16 Apr 2012 06:32:04 +0000 (09:32 +0300)
commit04b5e6c8f5c41c0d79e05f4ac6da218623b247ae
tree65b7f2284b8786809298e3bb6a2a858d8607ba27
parent57a14adcf5b4090704f803dc4dfe0df953844cfd
ath6kl: list_first_entry() is never NULL

We can remove the NULL check here.  It triggers a Smatch warning because
list_first_entry() never is NULL and people who check for it normally
intend to check for list_empty() instead.  In these cases however,
we've already verified that the lists are not empty.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/htc_pipe.c