Commit ef94b266 authored by Haowen Bai's avatar Haowen Bai Committed by Greg Kroah-Hartman

testusb: Fix warning comparing pointer to 0

Avoid pointer type value compared with 0 to make code clear.
Signed-off-by: default avatarHaowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1648088171-30912-1-git-send-email-baihaowen@meizu.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bdddc253
......@@ -482,7 +482,7 @@ int main (int argc, char **argv)
}
if (not)
return 0;
if (testdevs && testdevs->next == 0 && !device)
if (testdevs && !testdevs->next && !device)
device = testdevs->name;
for (entry = testdevs; entry; entry = entry->next) {
int status;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment