Remove redundant check for (host == NULL)

Signed-off-by: Syam Sidhardhan <[email protected]>
---
 drivers/mmc/host/omap_hsmmc.c |   10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index bc58078..5d690e6 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -2100,10 +2100,7 @@ static int omap_hsmmc_suspend(struct device *dev)
        int ret = 0;
        struct omap_hsmmc_host *host = dev_get_drvdata(dev);
 
-       if (!host)
-               return 0;
-
-       if (host && host->suspended)
+       if (!host || host->suspended)
                return 0;
 
        pm_runtime_get_sync(host->dev);
@@ -2134,10 +2131,7 @@ static int omap_hsmmc_resume(struct device *dev)
        int ret = 0;
        struct omap_hsmmc_host *host = dev_get_drvdata(dev);
 
-       if (!host)
-               return 0;
-
-       if (host && !host->suspended)
+       if (!(host && host->suspended))
                return 0;
 
        pm_runtime_get_sync(host->dev);
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to