ath9k: cleanup: remove unneeded null check
authorDan Carpenter <error27@gmail.com>
Sat, 22 May 2010 20:33:11 +0000 (22:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 2 Jun 2010 20:13:33 +0000 (16:13 -0400)
commit43163f0f8a11822607c36249c6f55f0613e0d73d
tree0e4a7f467d2722ea50942bb19dc45353a91bb2b7
parenta906b060b069d84e9d2b7fe60cc7a7f893be4c0c
ath9k: cleanup: remove unneeded null check

We dereference "wmi" on the line before and also when we initialize "ah".
This check has always been after a dereference since the first commit a
couple months ago.  Looking through the code, it looks like "wmi" can't
actually be null here so I just removed the check.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/wmi.c