Skip to content

Commit 5fd50c4

Browse files
committed
misra
1 parent 0228015 commit 5fd50c4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

opendbc/safety/safety/safety_gm.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ typedef enum {
2929
static GmHardware gm_hw = GM_ASCM;
3030
static bool gm_cam_long = false;
3131
static bool gm_pcm_cruise = false;
32-
static bool gm_ev = false;
3332

3433
static void gm_rx_hook(const CANPacket_t *to_push) {
3534

@@ -226,7 +225,6 @@ static safety_config gm_init(uint16_t param) {
226225
{0x1E1, 2, 7, false}, {0x184, 2, 8, false}}; // camera bus
227226

228227
gm_hw = GET_FLAG(param, GM_PARAM_HW_CAM) ? GM_CAM : GM_ASCM;
229-
gm_ev = GET_FLAG(param, GM_PARAM_EV);
230228

231229
if (gm_hw == GM_ASCM) {
232230
gm_long_limits = &GM_ASCM_LONG_LIMITS;
@@ -251,6 +249,7 @@ static safety_config gm_init(uint16_t param) {
251249
ret = BUILD_SAFETY_CFG(gm_rx_checks, GM_ASCM_TX_MSGS);
252250
}
253251

252+
const bool gm_ev = GET_FLAG(param, GM_PARAM_EV);
254253
if (gm_ev) {
255254
SET_RX_CHECKS(gm_ev_rx_checks, ret);
256255
}

0 commit comments

Comments
 (0)