mmc: omap_hsmmc: Remove redundant check
Subsystems (2)
PATCH 1/1 mmc: omap_hsmmc: Remove redundant check
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(-)
drivers/mmc/host/omap_hsmmc.c +2 -8
@@ -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);
Signature · 1 line
1.7.9.5