mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Eliminate a warning
This commit is contained in:
@@ -769,8 +769,7 @@ static int rtchw_check_alrbwf(void)
|
|||||||
#ifdef CONFIG_RTC_ALARM
|
#ifdef CONFIG_RTC_ALARM
|
||||||
static int rtchw_set_alrmar(rtc_alarmreg_t alarmreg)
|
static int rtchw_set_alrmar(rtc_alarmreg_t alarmreg)
|
||||||
{
|
{
|
||||||
int ret= -EBUSY;
|
int ret = -EBUSY;
|
||||||
uint32_t cr;
|
|
||||||
|
|
||||||
/* Need to follow RTC register wrote protection
|
/* Need to follow RTC register wrote protection
|
||||||
* Disable the write protection for RTC registers
|
* Disable the write protection for RTC registers
|
||||||
@@ -807,8 +806,7 @@ errout_with_wprunlock:
|
|||||||
#ifdef CONFIG_RTC_ALARM
|
#ifdef CONFIG_RTC_ALARM
|
||||||
static int rtchw_set_alrmbr(rtc_alarmreg_t alarmreg)
|
static int rtchw_set_alrmbr(rtc_alarmreg_t alarmreg)
|
||||||
{
|
{
|
||||||
uint32_t cr;
|
int ret = -EBUSY;
|
||||||
int ret= -EBUSY;
|
|
||||||
|
|
||||||
/* Need to follow RTC register wrote protection
|
/* Need to follow RTC register wrote protection
|
||||||
* Disable the write protection for RTC registers
|
* Disable the write protection for RTC registers
|
||||||
|
|||||||
Reference in New Issue
Block a user