]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: remove unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 21 Sep 2011 07:13:56 +0000 (10:13 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 21 Sep 2011 20:19:44 +0000 (16:19 -0400)
commit05a44f7f10c80c8bd844a4c8db5201f8828ba345
treeec6b2dd4e2ef4ec7cf2421f9989bfba240605c3a
parent99708718925adbf0e3d4aadda5305416e06d54b3
mwifiex: remove unneeded NULL check

We dereference "rate" on the lines before so the checks here are too
late to help.  This function is only called from
mwifiex_dump_station_info() and "rate" is always a non-NULL pointer
so the check can be removed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c