OSDN Git Service

rapidio: adjust 12 checks for null pointers
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 6 Feb 2018 23:39:44 +0000 (15:39 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Feb 2018 02:32:46 +0000 (18:32 -0800)
commit93dd49afc27b72cc621b3d9c2ff86052db9c8222
treec808301535d080c6bbf66ebfea12912378b835fa
parent0c5afcade39550a6af1185535e1b6c547e76ff79
rapidio: adjust 12 checks for null pointers

checkpatch pointed information out like the following.

  Comparison to NULL could be written ...

Thus fix the affected source code places.

Link: http://lkml.kernel.org/r/739f9f1c-3ebe-c21b-c5e2-31976cfbc0ee@users.sourceforge.net
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rapidio/rio.c