Skip to content

Commit

Permalink
sensord: fix redundant assignment (#33707)
Browse files Browse the repository at this point in the history
fix redundant assignment
  • Loading branch information
deanlee authored Oct 2, 2024
1 parent af60921 commit 7fa8e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/sensord/sensors/lsm6ds3_gyro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ int LSM6DS3_Gyro::init() {
uint8_t value = 0;
bool do_self_test = false;

const char* env_lsm_selftest =env_lsm_selftest = std::getenv("LSM_SELF_TEST");
const char* env_lsm_selftest = std::getenv("LSM_SELF_TEST");
if (env_lsm_selftest != nullptr && strncmp(env_lsm_selftest, "1", 1) == 0) {
do_self_test = true;
}
Expand Down

0 comments on commit 7fa8e3d

Please sign in to comment.