diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-10 12:52:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2010-04-10 12:52:40 +0000 |
commit | 81f066943e02124e73358f6ccc7e2fe4dbd1467a (patch) | |
tree | 50e6b819e65a922f034b577cbe0f59e40fbe069b | |
parent | bfffa9b8b5f1b248b86ea7a8419b5411ccf8202c (diff) |
The statement c != '\0' != 0 doesn't make an awful lot of sense, so drop the
!= 0 bit. Makes GCC 4.2.1 happy.
-rw-r--r-- | sys/arch/sparc64/dev/rtc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/rtc.c b/sys/arch/sparc64/dev/rtc.c index 98fbf3e8eb4..dfa57e4ed53 100644 --- a/sys/arch/sparc64/dev/rtc.c +++ b/sys/arch/sparc64/dev/rtc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtc.c,v 1.7 2009/01/07 13:01:39 kettenis Exp $ */ +/* $OpenBSD: rtc.c,v 1.8 2010/04/10 12:52:39 kettenis Exp $ */ /* * Copyright (c) 1992, 1993 @@ -157,7 +157,7 @@ rtc_attach(struct device *parent, struct device *self, void *aux) model = getpropstring(ea->ea_node, "model"); if (*model == '\0') model = getpropstring(ea->ea_node, "compatible"); - printf(": %s\n", *model != '\0' != 0 ? model : "unknown"); + printf(": %s\n", *model != '\0' ? model : "unknown"); /* Setup our todr_handle */ handle = malloc(sizeof(struct todr_chip_handle), M_DEVBUF, M_NOWAIT); |