embed: remove superfluous != NULL

pull/25/head
Pavol Rusnak 6 years ago
parent f1d8a3aaf2
commit 08d8cf6a25
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

@ -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…
Cancel
Save