mirror of https://gitee.com/openkylin/linux.git
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:
parent
1e3ab52197
commit
277f3f718d
|
@ -62,7 +62,7 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
|
||||||
p++;
|
p++;
|
||||||
remain--;
|
remain--;
|
||||||
chars++;
|
chars++;
|
||||||
} else if (p == NULL) {
|
} else if (!p) {
|
||||||
chars++;
|
chars++;
|
||||||
}
|
}
|
||||||
nonprintable_streak = 0;
|
nonprintable_streak = 0;
|
||||||
|
@ -72,7 +72,7 @@ vbuschannel_sanitize_buffer(char *p, int remain, char *src, int srcmax)
|
||||||
p++;
|
p++;
|
||||||
remain--;
|
remain--;
|
||||||
chars++;
|
chars++;
|
||||||
} else if (p == NULL) {
|
} else if (!p) {
|
||||||
chars++;
|
chars++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue