forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
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 */