mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 12:21:22 -05:00
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:
committed by
Greg Kroah-Hartman
parent
bdddc253b0
commit
ef94b2664a
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user