USB_ERR_MAX
static const char* usb_errstr_table[USB_ERR_MAX] = {
return (err < USB_ERR_MAX ? usb_errstr_table[err] : "USB_ERR_UNKNOWN");
static const int xhci_usb_errors[USB_ERR_MAX] = {
#define USB_TO_XHCI_ERR(e) ((e) < USB_ERR_MAX ? xhci_usb_errors[(e)] : \
static const char *errstr_table[USB_ERR_MAX] = {
if (error >= USB_ERR_MAX || errstr_table[error] == NULL)