From: Fabio Estevam Date: Wed, 9 Jan 2013 02:32:02 +0000 (-0200) Subject: staging: imx-drm: ipu-common: Remove unused variable X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ee723a96f9313d67e88c7a9d3ae6162d2308f2d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: imx-drm: ipu-common: Remove unused variable Fix the following warning when building with W=1 option: drivers/staging/imx-drm/ipu-v3/ipu-common.c: In function 'ipu_remove': drivers/staging/imx-drm/ipu-v3/ipu-common.c:1145:19: warning: variable 'res' set but not used [-Wunused-but-set-variable] Signed-off-by: Fabio Estevam Acked-by: Sascha Hauer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/ipu-v3/ipu-common.c b/drivers/staging/imx-drm/ipu-v3/ipu-common.c index f7059cddd7fd..366f259e3756 100644 --- a/drivers/staging/imx-drm/ipu-v3/ipu-common.c +++ b/drivers/staging/imx-drm/ipu-v3/ipu-common.c @@ -1142,9 +1142,6 @@ failed_ioremap: static int ipu_remove(struct platform_device *pdev) { struct ipu_soc *ipu = platform_get_drvdata(pdev); - struct resource *res; - - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); platform_device_unregister_children(pdev); ipu_submodules_exit(ipu);