diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-09-15 16:03:17 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-09-15 16:03:17 +0000 |
commit | d2bc7754a226c031b76184277e32c4d65a763f67 (patch) | |
tree | 5e1d7cb581d7ec55563fb8727db5be7c19f37a59 | |
parent | 828f257277bd7418bbc0431bbd78569a2f609af1 (diff) | |
download | src-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.c | 2 |
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(); } } |