From: Luciano Coelho Date: Mon, 10 Nov 2014 09:10:10 +0000 (+0200) Subject: iwlwifi: mvm: return the actual error code when switch_vif_chanctx fails X-Git-Tag: omap-for-v3.20/drop-legacy-3517~122^2~28^2~58^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fd1fb63abeb78fd7fe30f08f478732ad601702c;p=pandora-kernel.git iwlwifi: mvm: return the actual error code when switch_vif_chanctx fails We have code to recover and go back to the original channel context if something fails in the middle of switch_vif_chanctx, but we return the error code of the recover calls instead of the original code, so if the recovery succeeds, we will return 0 (success). Fix this by not assigning the return value of the recovery calls to ret. Signed-off-by: Luciano Coelho --- Reading git-diff-tree failed