Browse Source

staging: ccree: remove extraneous spin_unlock_bh() in error handler

An early error handler in send_request() tries to release a spinlock,
but the lock isn't acquired until the loop below it is entered.

Signed-off-by: Ian Chard <ian@chard.org>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Ian Chard 8 years ago
parent
commit
c21376631d
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/staging/ccree/ssi_request_mgr.c

+ 0 - 1
drivers/staging/ccree/ssi_request_mgr.c

@@ -376,7 +376,6 @@ int send_request(
 	rc = ssi_power_mgr_runtime_get(&drvdata->plat_dev->dev);
 	if (rc != 0) {
 		SSI_LOG_ERR("ssi_power_mgr_runtime_get returned %x\n",rc);
-		spin_unlock_bh(&req_mgr_h->hw_lock);
 		return rc;
 	}
 #endif