[PATCH] ARM: OMAP2: remove useless variable 'ret'

Tony Lindgren tony at atomide.com
Thu Aug 22 03:17:02 EDT 2013


* Chen Gang <gang.chen at asianux.com> [130821 01:39]:
> Remove useless variable 'ret', the related warning:
> 
>   arch/arm/mach-omap2/board-am3517crane.c:113:6: warning: unused variable ‘ret’ [-Wunused-variable]

Thanks applying into omap-for-v3.12/fixes-non-critical.

Regards,

Tony 
 
> Signed-off-by: Chen Gang <gang.chen at asianux.com>
> ---
>  arch/arm/mach-omap2/board-am3517crane.c |    2 --
>  1 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c
> index fc53911..0d499a1 100644
> --- a/arch/arm/mach-omap2/board-am3517crane.c
> +++ b/arch/arm/mach-omap2/board-am3517crane.c
> @@ -110,8 +110,6 @@ static void __init am3517_crane_i2c_init(void)
>  
>  static void __init am3517_crane_init(void)
>  {
> -	int ret;
> -
>  	omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
>  	omap_serial_init();
>  	omap_sdrc_init(NULL, NULL);
> -- 
> 1.7.7.6



More information about the linux-arm-kernel mailing list