From: Erik Arfvidson Date: Mon, 8 Feb 2016 15:41:42 +0000 (-0500) Subject: staging: unisys: Fix NULL comparison vbusdeviceinfo.h X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=277f3f718d395653eb9f21fbda8900a65d7f2bd9;p=linux-beck.git staging: unisys: Fix NULL comparison vbusdeviceinfo.h This patches resolves the NULL comparison checkpatch warnings Signed-off-by: Erik Arfvidson Signed-off-by: Benjamin Romer Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/unisys/visorbus/vbusdeviceinfo.h b/drivers/staging/unisys/visorbus/vbusdeviceinfo.h index f59fd8a523c4..32169752c6f4 100644 --- a/drivers/staging/unisys/visorbus/vbusdeviceinfo.h +++ b/drivers/staging/unisys/visorbus/vbusdeviceinfo.h @@ -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 {