]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/scom: Return NULL instead of 0
authorBreno Leitao <leitao@debian.org>
Mon, 22 Oct 2018 14:54:18 +0000 (11:54 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 25 Nov 2018 06:11:21 +0000 (17:11 +1100)
commit08e9bc68865680bd286264a579e03307c1fb529a
tree7c404421c3178a7427c3458037cf0256e690fa45
parentdd1d2427bd931ff81821431973c2266b5650b135
powerpc/scom: Return NULL instead of 0

Function scom_map_device() returns data type 'scom_map_t', which is a
typedef for 'void *'. This functions is currently returning NULL and zero,
which causes the following warning by 'sparse':

arch/powerpc/sysdev/scom.c:63:24: warning: Using plain integer as NULL pointer
arch/powerpc/sysdev/scom.c:86:24: warning: Using plain integer as NULL pointer

This patch simply replaces zero by NULL.

Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/scom.c