]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: ERR_PTR vs null
authorDan Carpenter <error27@gmail.com>
Sat, 25 Jul 2009 12:22:59 +0000 (15:22 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jul 2009 19:19:35 +0000 (15:19 -0400)
commit3a51a3d549650943d555bc7f6ecd2d8d1ff07a88
treea9411d3d1d1a10a608a6c0ffc7d8b1c50f2922f1
parent8ac71d83e287cbf113396185779229fe14cc88b3
wireless: ERR_PTR vs null

iwm_wdev_alloc() returns an ERR_PTR on failure and not null.  It also
prints its own dev_err() message so I removed that as well.

Compile tested only.  Sorry.
Found by smatch (http://repo.or.cz/w/smatch.git).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/netdev.c