Clean up types and unused vars in struct elmcan
authornorly <ny-git@enpas.org>
Wed, 16 Mar 2022 21:29:58 +0000 (22:29 +0100)
committernorly <ny-git@enpas.org>
Wed, 16 Mar 2022 21:29:58 +0000 (22:29 +0100)
module/elmcan.c

index ed652de890761db84a91306407c0d06093895a77..dd8889bf37d74d7859acb6ab046c627e5dc5d865 100644 (file)
@@ -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;