Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vorel <pvorel@suse.cz>2019-10-07 10:29:31 +0200
committerPetr Vorel <pvorel@suse.cz>2019-10-07 10:29:31 +0200
commit57f85ac6359e1944993a549840a7679ca64861f0 (patch)
tree1ed65bbdc6c437bd0fbf8174d6461e90dbf1c5df
parent76682b00f891807cac3066e8c4a0fa9e5fa73e1b (diff)
alarmtimer: Use EOPNOTSUPP instead of ENOTSUPP (bsc#1151680).
-rw-r--r--kernel/time/alarmtimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
index ae9e7338dc13..8d2b82240e45 100644
--- a/kernel/time/alarmtimer.c
+++ b/kernel/time/alarmtimer.c
@@ -581,7 +581,7 @@ static int alarm_timer_create(struct k_itimer *new_timer)
enum alarmtimer_type type;
if (!alarmtimer_get_rtcdev())
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
if (!capable(CAP_WAKE_ALARM))
return -EPERM;
@@ -809,7 +809,7 @@ static int alarm_timer_nsleep(const clockid_t which_clock, int flags,
int ret = 0;
if (!alarmtimer_get_rtcdev())
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
if (flags & ~TIMER_ABSTIME)
return -EINVAL;