staging: unisys: Fix NULL comparison vbusdeviceinfo.h
authorErik Arfvidson <erik.arfvidson@unisys.com>
Mon, 8 Feb 2016 15:41:42 +0000 (10:41 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 03:37:15 +0000 (19:37 -0800)
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>
drivers/staging/unisys/visorbus/vbusdeviceinfo.h

index f59fd8a523c4fa838d4b4f9f4d60166ec4d3f1f5..32169752c6f4c75dad97d475357d6ea3dc40055a 100644 (file)
@@ -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 {