wcte13xp: Fix unintended fall through in t13x_set_linemode for J1

Found by GCC with -Wimplicit-fallthrough.

Also fix the log message to report that the mode was switched to J1 mode.

Signed-off-by: Shaun Ruffell <sruffell@sruffell.net>
This commit is contained in:
Shaun Ruffell 2019-09-24 20:18:31 -05:00
parent 6e5197fed4
commit ac300cd895

View File

@ -1872,9 +1872,10 @@ static int t13x_set_linemode(struct dahdi_span *span, enum spantypes linemode)
break; break;
case SPANTYPE_DIGITAL_J1: case SPANTYPE_DIGITAL_J1:
dev_info(&wc->xb.pdev->dev, dev_info(&wc->xb.pdev->dev,
"Changing from %s to E1 line mode.\n", "Changing from %s to J1 line mode.\n",
dahdi_spantype2str(wc->span.spantype)); dahdi_spantype2str(wc->span.spantype));
res = t13x_software_init(wc, J1); res = t13x_software_init(wc, J1);
break;
default: default:
dev_err(&wc->xb.pdev->dev, dev_err(&wc->xb.pdev->dev,
"Got invalid linemode '%s' from dahdi\n", "Got invalid linemode '%s' from dahdi\n",