From 858a6a0ffa6af2bfa6c567f796f6f0565e777cef Mon Sep 17 00:00:00 2001 From: norly Date: Wed, 16 Mar 2022 22:29:58 +0100 Subject: [PATCH] Clean up types and unused vars in struct elmcan --- module/elmcan.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/module/elmcan.c b/module/elmcan.c index ed652de..dd8889b 100644 --- a/module/elmcan.c +++ b/module/elmcan.c @@ -127,16 +127,14 @@ struct elmcan { ELM327_STATE_RECEIVING, } state; - int drop_next_line; + bool drop_next_line; /* The CAN frame and config the ELM327 is sending/using, * or will send/use after finishing all cmds_todo */ struct can_frame can_frame_to_send; - unsigned short can_config; - unsigned long can_bitrate; - unsigned char can_bitrate_divisor; - int silent_monitoring; + u16 can_config; + u8 can_bitrate_divisor; /* Things we have yet to send */ char **next_init_cmd; -- 2.30.2