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:
Erik Arfvidson 2016-02-08 10:41:42 -05:00 committed by Greg Kroah-Hartman
parent 1e3ab52197
commit 277f3f718d
1 changed files with 2 additions and 2 deletions

View File

@ -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 {