diff options
author | 2025-01-14 17:54:02 +0100 | |
---|---|---|
committer | 2025-01-15 18:35:57 +0100 | |
commit | b3beeeee2724b0664a2fc8682e1440d3fc31c6fe (patch) | |
tree | 0090946ff14e1295e497a6db764c9949bfb1c3cc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | staging: gpib: Use __user for user space pointers (diff) | |
download | linux-rng-b3beeeee2724b0664a2fc8682e1440d3fc31c6fe.tar.xz linux-rng-b3beeeee2724b0664a2fc8682e1440d3fc31c6fe.zip |
staging: gpib: Avoid plain integers as NULL pointers
A number of drivers were comparing request_region() with 0,
others were passing 0 instead of NULL as a pointer argument.
This led to the following sparse warning, for example:
cb7210/cb7210.c:1043:72: warning: Using plain integer as NULL pointer
Use !request_region() to test for NULL return and use NULL instead
of 0 as pointer parameter.
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250114165403.16410-4-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions