aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-09-15 16:03:17 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-09-15 16:03:17 +0000
commitd2bc7754a226c031b76184277e32c4d65a763f67 (patch)
tree5e1d7cb581d7ec55563fb8727db5be7c19f37a59
parent828f257277bd7418bbc0431bbd78569a2f609af1 (diff)
downloadsrc-d2bc7754a226c031b76184277e32c4d65a763f67.tar.gz
src-d2bc7754a226c031b76184277e32c4d65a763f67.zip
Assert that invalid bus widths can't be passed to bus_width_str().
This appeases a -Wreturn-type warning from GCC. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D31935
-rw-r--r--sys/cam/mmc/mmc_da.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/mmc/mmc_da.c b/sys/cam/mmc/mmc_da.c
index e41792dcebc1..4212e2aa805d 100644
--- a/sys/cam/mmc/mmc_da.c
+++ b/sys/cam/mmc/mmc_da.c
@@ -1178,6 +1178,8 @@ static inline const char
return ("4-bit");
case bus_width_8:
return ("8-bit");
+ default:
+ __assert_unreachable();
}
}