mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-22 12:32:02 +00:00
embed: remove superfluous != NULL
This commit is contained in:
parent
f1d8a3aaf2
commit
08d8cf6a25
@ -151,7 +151,7 @@ error:
|
||||
}
|
||||
|
||||
void sdcard_power_off(void) {
|
||||
if (sd_handle.Instance != NULL) {
|
||||
if (sd_handle.Instance) {
|
||||
HAL_SD_DeInit(&sd_handle);
|
||||
sd_handle.Instance = NULL;
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ void touch_power_on(void) {
|
||||
}
|
||||
|
||||
void touch_power_off(void) {
|
||||
if (i2c_handle.Instance != NULL) {
|
||||
if (i2c_handle.Instance) {
|
||||
HAL_I2C_DeInit(&i2c_handle);
|
||||
i2c_handle.Instance = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user