diff mbox

[1/2] ARM: SAMSUNG: Silence empty switch warning in sdhci.h

Message ID 1360131567-583-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Feb. 6, 2013, 6:19 a.m. UTC
Add 'default' case to silence the following warning:
arch/arm/plat-samsung/include/plat/sdhci.h:356:9: warning: switch with no cases

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 arch/arm/plat-samsung/include/plat/sdhci.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Comments

Sachin Kamat Feb. 12, 2013, 5:32 p.m. UTC | #1
Ping...

On Wednesday, 6 February 2013, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> Add 'default' case to silence the following warning:
> arch/arm/plat-samsung/include/plat/sdhci.h:356:9: warning: switch with no
cases
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  arch/arm/plat-samsung/include/plat/sdhci.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h
b/arch/arm/plat-samsung/include/plat/sdhci.h
> index 151cc91..9b87f38 100644
> --- a/arch/arm/plat-samsung/include/plat/sdhci.h
> +++ b/arch/arm/plat-samsung/include/plat/sdhci.h
> @@ -374,6 +374,8 @@ static inline void s3c_sdhci_setname(int id, char
*name)
>                 s3c_device_hsmmc3.name = name;
>                 break;
>  #endif
> +       default:
> +               break;
>         }
>  }
>
> --
> 1.7.4.1
>
>
Kukjin Kim Feb. 12, 2013, 6:29 p.m. UTC | #2
Sachin Kamat wrote:
> 
> Add 'default' case to silence the following warning:
> arch/arm/plat-samsung/include/plat/sdhci.h:356:9: warning: switch with no
> cases
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  arch/arm/plat-samsung/include/plat/sdhci.h |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-
> samsung/include/plat/sdhci.h
> index 151cc91..9b87f38 100644
> --- a/arch/arm/plat-samsung/include/plat/sdhci.h
> +++ b/arch/arm/plat-samsung/include/plat/sdhci.h
> @@ -374,6 +374,8 @@ static inline void s3c_sdhci_setname(int id, char
> *name)
>  		s3c_device_hsmmc3.name = name;
>  		break;
>  #endif
> +	default:
> +		break;
>  	}
>  }
> 
> --
> 1.7.4.1

Applied, this and second one.

Thanks.

- Kukjin
diff mbox

Patch

diff --git a/arch/arm/plat-samsung/include/plat/sdhci.h b/arch/arm/plat-samsung/include/plat/sdhci.h
index 151cc91..9b87f38 100644
--- a/arch/arm/plat-samsung/include/plat/sdhci.h
+++ b/arch/arm/plat-samsung/include/plat/sdhci.h
@@ -374,6 +374,8 @@  static inline void s3c_sdhci_setname(int id, char *name)
 		s3c_device_hsmmc3.name = name;
 		break;
 #endif
+	default:
+		break;
 	}
 }