remove useless check as previous one is enough

This commit is contained in:
smayzy 2026-04-27 14:59:41 +02:00
parent 45bad91ba7
commit 52c2deb4ca

View File

@ -122,7 +122,6 @@ void read_can(Tel *t, int soc) {
if (nbytes != sizeof(struct can_frame)) return; if (nbytes != sizeof(struct can_frame)) return;
if (nbytes > 0) {
switch (frame.can_id) { switch (frame.can_id) {
@ -134,7 +133,6 @@ void read_can(Tel *t, int soc) {
default: default:
break; break;
} }
}
} }
void read_uart(Tel *t, int fd, SerialParser *uart_str) { void read_uart(Tel *t, int fd, SerialParser *uart_str) {