mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 12:33:18 -04:00
staging: unisys: Fix NULL comparison vbusdeviceinfo.h
This patches resolves the NULL comparison checkpatch warnings Signed-off-by: Erik Arfvidson <erik.arfvidson@unisys.com> Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1e3ab52197
commit
277f3f718d
@@ -62,7 +62,7 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
|
||||
p++;
|
||||
remain--;
|
||||
chars++;
|
||||
} else if (p == NULL) {
|
||||
} else if (!p) {
|
||||
chars++;
|
||||
}
|
||||
nonprintable_streak = 0;
|
||||
@@ -72,7 +72,7 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
|
||||
p++;
|
||||
remain--;
|
||||
chars++;
|
||||
} else if (p == NULL) {
|
||||
} else if (!p) {
|
||||
chars++;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user