forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-16 50a212ec906f7524620675f0c57357691c26c81f
kernel/drivers/usb/serial/kobil_sct.c
....@@ -499,7 +499,7 @@
499499 break;
500500 default:
501501 speed = 9600;
502
- /* fall through */
502
+ fallthrough;
503503 case 9600:
504504 urb_val = SUSBCR_SBR_9600;
505505 break;
....@@ -526,6 +526,10 @@
526526 0,
527527 KOBIL_TIMEOUT
528528 );
529
+ if (result) {
530
+ dev_err(&port->dev, "failed to update line settings: %d\n",
531
+ result);
532
+ }
529533 }
530534
531535 static int kobil_ioctl(struct tty_struct *tty,