testusb: Fix warning comparing pointer to 0

Avoid pointer type value compared with 0 to make code clear.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Link: https://lore.kernel.org/r/1648088171-30912-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Haowen Bai 2022-03-24 10:16:11 +08:00 committed by Greg Kroah-Hartman
parent bdddc253b0
commit ef94b2664a

View File

@ -482,7 +482,7 @@ usage:
}
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;