lkml.org 
[lkml]   [2015]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch: m68k: 68360: config: Remove unused function
Hi Rickard,

On 03/01/15 07:05, Rickard Strandqvist wrote:
> Remove the function BSP_set_clock_mmss() that is not used anywhere.
>
> This was partially found by using a static code analysis program called cppcheck.
>
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>

Thanks, I'll add it to the m68knommu git tree.

Regards
Greg


> ---
> arch/m68k/68360/config.c | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/arch/m68k/68360/config.c b/arch/m68k/68360/config.c
> index 17ec416..fd1f948 100644
> --- a/arch/m68k/68360/config.c
> +++ b/arch/m68k/68360/config.c
> @@ -106,19 +106,6 @@ void hw_timer_init(irq_handler_t handler)
> pquicc->timer_tgcr = tgcr_save;
> }
>
> -int BSP_set_clock_mmss(unsigned long nowtime)
> -{
> -#if 0
> - short real_seconds = nowtime % 60, real_minutes = (nowtime / 60) % 60;
> -
> - tod->second1 = real_seconds / 10;
> - tod->second2 = real_seconds % 10;
> - tod->minute1 = real_minutes / 10;
> - tod->minute2 = real_minutes % 10;
> -#endif
> - return 0;
> -}
> -
> void BSP_reset (void)
> {
> local_irq_disable();
>



\
 
 \ /
  Last update: 2015-01-05 02:01    [W:0.035 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site