remove useless check as previous one is enough
This commit is contained in:
parent
45bad91ba7
commit
52c2deb4ca
@ -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) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user