Skip to content

Commit 1d45a3f

Browse files
masahir0ystorulf
authored andcommitted
mmc: sdhci-cadence: remove unneeded 'inline' marker
'static inline' in .c files does not make much sense because functions may or may not be inlined irrespective of the 'inline' marker. It is just a hint. This function is quite small, so very likely to be inlined by the compiler's optimization (-O2 or -Os), but it is up to the compiler after all. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Adrian Hunter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent c389b00 commit 1d45a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-cadence.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ static int sdhci_cdns_phy_init(struct sdhci_cdns_priv *priv)
158158
return 0;
159159
}
160160

161-
static inline void *sdhci_cdns_priv(struct sdhci_host *host)
161+
static void *sdhci_cdns_priv(struct sdhci_host *host)
162162
{
163163
struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host);
164164

0 commit comments

Comments
 (0)