Johannes Berg 75813bde1f iwlwifi: fix memory leak if opmode fails to init
If drv->op_mode is NULL after trying to init the
opmode, we go to the wrong label. Fix this, and
clean up the code a bit.

Reviewed-by: Gregory Greenman <gregory.greenman@intel.com>
Reviewed-by: Guy Cohen <guy.cohen@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2012-05-25 11:12:41 -04:00
..
2012-04-23 14:30:01 -07:00
2012-01-24 14:08:36 -05:00
2012-03-06 15:16:11 -05:00
2012-04-16 14:35:32 -07:00
2012-01-24 14:08:36 -05:00
2012-04-23 14:30:01 -07:00
2012-03-08 13:59:50 -05:00
2012-04-18 07:31:33 -07:00
2012-04-23 14:30:51 -07:00
2012-01-24 14:08:36 -05:00
2012-04-23 14:30:51 -07:00
2012-05-15 17:27:53 -04:00
2012-05-25 11:12:41 -04:00
2012-05-25 11:12:41 -04:00