ACK: [PATCH] fwts_wakealarm: remove unused function fwts_wakealarm_exits

Alex Hung alex.hung at canonical.com
Sat Dec 7 16:17:57 UTC 2019


On 2019-12-07 8:54 a.m., Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Function fwts_wakealarm_exits is not used, remove it. Minor
> code cleanup.
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/include/fwts_wakealarm.h |  1 -
>  src/lib/src/fwts_wakealarm.c     | 11 -----------
>  2 files changed, 12 deletions(-)
> 
> diff --git a/src/lib/include/fwts_wakealarm.h b/src/lib/include/fwts_wakealarm.h
> index 84bc9247..c3db5767 100644
> --- a/src/lib/include/fwts_wakealarm.h
> +++ b/src/lib/include/fwts_wakealarm.h
> @@ -24,7 +24,6 @@
>  
>  #include "fwts_framework.h"
>  
> -int fwts_wakealarm_exits(fwts_framework *fw);
>  int fwts_wakealarm_test_firing(fwts_framework *fw, const uint32_t sleep);
>  int fwts_wakealarm_trigger(fwts_framework *fw, const uint32_t seconds);
>  int fwts_wakealarm_cancel(fwts_framework *fw);
> diff --git a/src/lib/src/fwts_wakealarm.c b/src/lib/src/fwts_wakealarm.c
> index ed43ceda..273e4020 100644
> --- a/src/lib/src/fwts_wakealarm.c
> +++ b/src/lib/src/fwts_wakealarm.c
> @@ -78,17 +78,6 @@ int fwts_wakealarm_set(fwts_framework *fw, struct rtc_time *rtc_tm)
>  	return ret;
>  }
>  
> -/*
> - *  fwts_wakealarm_exits()
> - *	check that a RTC exists that supports minimal RTC alarm ioctl
> - */
> -int fwts_wakealarm_exits(fwts_framework *fw)
> -{
> -	struct rtc_time rtc_tm;
> -
> -	return fwts_wakealarm_get(fw, &rtc_tm);
> -}
> -
>  /*
>   *  fwts_wakealarm_trigger()
>   *	trigger the RTC wakealarm to fire in 'seconds' seconds from now.
> 


Acked-by: Alex Hung <alex.hung at canonical.com>



More information about the fwts-devel mailing list