Bluetooth: btmrvl: cleanup code in return from btmrvl_sdio_suspend()
authorprasanna karthik <prasannakarthik@outlook.com>
Tue, 28 Mar 2017 19:44:00 +0000 (19:44 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:39 +0000 (22:02 +0200)
Else is not generally useful after a break or return

Signed-off-by: Prasanna Karthik <pkarthik@outlook.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmrvl_sdio.c

index e65ca19970eaf3875f2a47128536e434710755ee..2424ea2685a7abac4733c5575ffa6da0c8d916f6 100644 (file)
@@ -1642,10 +1642,10 @@ static int btmrvl_sdio_suspend(struct device *dev)
        if (priv->adapter->hs_state == HS_ACTIVATED) {
                BT_DBG("suspend with MMC_PM_KEEP_POWER");
                return sdio_set_host_pm_flags(func, MMC_PM_KEEP_POWER);
-       } else {
-               BT_DBG("suspend without MMC_PM_KEEP_POWER");
-               return 0;
        }
+
+       BT_DBG("suspend without MMC_PM_KEEP_POWER");
+       return 0;
 }
 
 static int btmrvl_sdio_resume(struct device *dev)