From 4fa8663cfb8bb7f17e221b6e5b379addb6c7e9d7 Mon Sep 17 00:00:00 2001 From: staticssleever668 <64694940+staticssleever668@users.noreply.github.com> Date: Sat, 8 May 2021 21:29:37 +0300 Subject: [PATCH] driver-hidpp10: remove a redundant character array null check It is never null. Fixes a 'pointer-bool-conversion' warning by clang. --- src/driver-hidpp10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);