aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2020-12-19 04:28:25 +0000
committerRyan Libby <rlibby@FreeBSD.org>2020-12-19 04:28:25 +0000
commit1e2ccfc6c290defe415d33bcdcc49ac62ea5de7e (patch)
tree0fca57e180a3d62bb4baf755bbc861cb5dc198ab
parentd57a221046e720fc19be7fa13c6591ba49074000 (diff)
downloadsrc-1e2ccfc6c290defe415d33bcdcc49ac62ea5de7e.tar.gz
src-1e2ccfc6c290defe415d33bcdcc49ac62ea5de7e.zip
MFC r349848 (by lwhsu):
- Fix gcc build for superio(4) - Change string mapping of SUPERIO_DEV_NONE to distinguish from SUPERIO_DEV_MAX Reviewed by: imp Discussed with: avg, imp, jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D20880
Notes
Notes: svn path=/stable/12/; revision=368786
-rw-r--r--sys/dev/superio/superio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/superio/superio.c b/sys/dev/superio/superio.c
index 5a9591e4d466..5bf0b08fe769 100644
--- a/sys/dev/superio/superio.c
+++ b/sys/dev/superio/superio.c
@@ -419,7 +419,7 @@ devtype_to_str(superio_dev_type_t type)
{
switch (type) {
case SUPERIO_DEV_NONE:
- return ("invalid");
+ return ("none");
case SUPERIO_DEV_HWM:
return ("HWM");
case SUPERIO_DEV_WDT:
@@ -429,6 +429,7 @@ devtype_to_str(superio_dev_type_t type)
case SUPERIO_DEV_MAX:
return ("invalid");
}
+ return ("invalid");
}
static int