mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08: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:
parent
bdddc253b0
commit
ef94b2664a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user