Skip to content

Commit a1a75ee

Browse files
committed
Avoid mode may-be-uninitialized warning-as-error
1 parent 9fda51f commit a1a75ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tmf882x_interface.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ int32_t tmf882x_open(struct tmf882x_tof * tof)
9696

9797
if (tof->state.ops->open &&
9898
tof->state.ops->open(&tof->state)) {
99-
tof_err(to_priv(&tof->state), "Error opening mode: %#x",
100-
mode);
99+
tof_err(to_priv(&tof->state), "Error opening mode");
101100
tmf882x_init(tof, to_priv(&tof->state));
102101
return -1;
103102
}

0 commit comments

Comments
 (0)