Commit 277f3f71 authored by Erik Arfvidson's avatar Erik Arfvidson Committed by Greg Kroah-Hartman
Browse files

staging: unisys: Fix NULL comparison vbusdeviceinfo.h



This patches resolves the NULL comparison checkpatch warnings

Signed-off-by: default avatarErik Arfvidson <erik.arfvidson@unisys.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e3ab521
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 {