diff options
| author | Breno Leitao <leitao@debian.org> | 2018-10-22 11:54:18 -0300 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-11-25 17:11:21 +1100 |
| commit | 3347c9f691bf23c65375c51f904c848b36b6f8fb (patch) | |
| tree | 7c404421c3178a7427c3458037cf0256e690fa45 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | powerpc/lib: Declare static methods (diff) | |
| download | linux-3347c9f691bf23c65375c51f904c848b36b6f8fb.tar.gz linux-3347c9f691bf23c65375c51f904c848b36b6f8fb.zip | |
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
