diff mbox

[1/1] dRM/exynos: exynos_drm_ipp: Remove redundant break statement

Message ID 1370933811-13709-1-git-send-email-sachin.kamat@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Sachin Kamat June 11, 2013, 6:56 a.m. UTC
'break' after goto statement is redundant. Silences the following
message:
drivers/gpu/drm/exynos/exynos_drm_ipp.c:1067 exynos_drm_ipp_check_valid()
info: ignoring unreachable code.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/gpu/drm/exynos/exynos_drm_ipp.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Inki Dae June 13, 2013, 11:51 a.m. UTC | #1
Applied.

Thanks,
Inki Dae


2013/6/11 Sachin Kamat <sachin.kamat@linaro.org>

> 'break' after goto statement is redundant. Silences the following
> message:
> drivers/gpu/drm/exynos/exynos_drm_ipp.c:1067 exynos_drm_ipp_check_valid()
> info: ignoring unreachable code.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
>  drivers/gpu/drm/exynos/exynos_drm_ipp.c |    1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
> b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
> index 01cb9a0..b1ef8e7 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
> @@ -1064,7 +1064,6 @@ static bool exynos_drm_ipp_check_valid(struct device
> *dev,
>         default:
>                 DRM_ERROR("invalid state.\n");
>                 goto err_status;
> -               break;
>         }
>
>         return true;
> --
> 1.7.9.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index 01cb9a0..b1ef8e7 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
@@ -1064,7 +1064,6 @@  static bool exynos_drm_ipp_check_valid(struct device *dev,
 	default:
 		DRM_ERROR("invalid state.\n");
 		goto err_status;
-		break;
 	}
 
 	return true;