summaryrefslogtreecommitdiff
path: root/hwclock/rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwclock/rtc.c')
-rw-r--r--hwclock/rtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwclock/rtc.c b/hwclock/rtc.c
index b13a46a8..bc9733b8 100644
--- a/hwclock/rtc.c
+++ b/hwclock/rtc.c
@@ -332,7 +332,7 @@ static struct clock_ops rtc = {
struct clock_ops *
probe_for_rtc_clock(){
int rtc_fd = open_rtc();
- if (rtc_fd > 0) {
+ if (rtc_fd >= 0) {
close(rtc_fd);
return &rtc;
}