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
This commit is contained in:
John Baldwin 2021-09-15 09:03:17 -07:00
parent 828f257277
commit d2bc7754a2

View File

@ -1178,6 +1178,8 @@ static inline const char
return ("4-bit");
case bus_width_8:
return ("8-bit");
default:
__assert_unreachable();
}
}