From: Stanislaw Gruszka Date: Wed, 7 Mar 2012 17:52:24 +0000 (-0800) Subject: iwlwifi: always check if got h/w access before write X-Git-Tag: v3.4-rc1~177^2~108^2~24 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfe4b80e9f7385f34986736cdc094be56782109a;p=pandora-kernel.git iwlwifi: always check if got h/w access before write Before we write to the device registers always check if iwl_grap_nic_access() was successful. On the way change return type of grab_nic_access() to bool, and add likely()/unlikely() statement. Signed-off-by: Stanislaw Gruszka Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- Reading git-diff-tree failed