forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-09 05e59e5fb0064c97a1c10921ecd549f2d4a58565
kernel/drivers/tty/hvc/hvsi.c
....@@ -1141,7 +1141,7 @@
11411141 int ret;
11421142
11431143 if (console->index < 0 || console->index >= hvsi_count)
1144
- return -1;
1144
+ return -EINVAL;
11451145 hp = &hvsi_ports[console->index];
11461146
11471147 /* give the FSP a chance to change the baud rate when we re-open */