diff --git a/src/driver-hidpp10.c b/src/driver-hidpp10.c index d7bc2420..9ebbe912 100644 --- a/src/driver-hidpp10.c +++ b/src/driver-hidpp10.c @@ -448,7 +448,7 @@ hidpp10drv_read_profile(struct ratbag_profile *profile) free(profile->name); profile->name = NULL; } - if (p.name && p.name[0] != '\0') + if (p.name[0] != '\0') profile->name = strdup_safe((char*)p.name); rc = hidpp10_get_current_profile(hidpp10, &idx);