mmc: sdhci: remove unneeded (void *) casts in sdhci_(pltfm_)priv()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 10 Nov 2016 13:22:17 +0000 (22:22 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 Nov 2016 08:01:00 +0000 (09:01 +0100)
The type of host->private is (unsigned long *).  No cast is needed
to return an opaque pointer.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-pltfm.h
drivers/mmc/host/sdhci.h

index 3280f207795939138ff5ec0d2689184e0f48f172..957839d0fe376611443ed29d34c4d0c56ec5981a 100644 (file)
@@ -106,7 +106,7 @@ extern unsigned int sdhci_pltfm_clk_get_max_clock(struct sdhci_host *host);
 
 static inline void *sdhci_pltfm_priv(struct sdhci_pltfm_host *host)
 {
-       return (void *)host->private;
+       return host->private;
 }
 
 extern const struct dev_pm_ops sdhci_pltfm_pmops;
index 2570455b219a469c1669ff4d3f9935ca89e37c6f..9c357760b1cd280098aa5f98e9fdbb6817ac865d 100644 (file)
@@ -656,7 +656,7 @@ extern void sdhci_free_host(struct sdhci_host *host);
 
 static inline void *sdhci_priv(struct sdhci_host *host)
 {
-       return (void *)host->private;
+       return host->private;
 }
 
 extern void sdhci_card_detect(struct sdhci_host *host);