Re: apm.c: get rid of unused variables

From: Adrian Bunk
Date: Sun Mar 25 2007 - 12:25:38 EST


On Sun, Mar 25, 2007 at 12:06:19PM -0400, Parag Warudkar wrote:
>
> The patch below (against latest git) gets rid of following unused
> variables - clock_cmos_diff and got_clock_diff.
>
> 2 less compiler warnings.
>
> Compile tested on i386.
>
> Signed-off-by: Parag Warudkar <parag.warudkar@xxxxxxxxx>
>
> --- linux-2.6/arch/i386/kernel/apm.c 2007-03-24 21:43:35.000000000 -0400
> +++ linux-2.6-wk/arch/i386/kernel/apm.c 2007-03-25
> 11:50:16.000000000 -0400
> @@ -384,13 +384,6 @@
> static int ignore_normal_resume;
> static int bounce_interval __read_mostly =
> DEFAULT_BOUNCE_INTERVAL;
>
> -#ifdef CONFIG_APM_RTC_IS_GMT
> -# define clock_cmos_diff 0
> -# define got_clock_diff 1
> -#else
> -static long clock_cmos_diff;
> -static int got_clock_diff;
> -#endif
> static int debug __read_mostly;
> static int smp __read_mostly;
> static int apm_disabled = -1;

You could also remove the APM_RTC_IS_GMT config option.

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/