iwlwifi: remove stray mutex_unlock()
authorDan Carpenter <error27@gmail.com>
Sat, 8 May 2010 16:21:01 +0000 (18:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 May 2010 18:56:46 +0000 (14:56 -0400)
This mutex_unlock() has been here from the initial commit, but as nearly
as I can tell, there isn't a reason for it.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-3945.c

index 9dad8672d7003136ab872d800b7a61ff9a51214a..3faa78ceaed113b576d8c9e1eb3a7cd12b9f1ca6 100644 (file)
@@ -2482,7 +2482,6 @@ int iwl3945_hw_set_hw_params(struct iwl_priv *priv)
                                   &priv->_3945.shared_phys, GFP_KERNEL);
        if (!priv->_3945.shared_virt) {
                IWL_ERR(priv, "failed to allocate pci memory\n");
-               mutex_unlock(&priv->mutex);
                return -ENOMEM;
        }