mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
driver-hidpp10: remove a redundant character array null check
It is never null. Fixes a 'pointer-bool-conversion' warning by clang.
This commit is contained in:
committed by
Ilya guterman
parent
58086882a3
commit
4fa8663cfb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user