diff options
author | Dave Penkler <dpenkler@gmail.com> | 2025-01-14 17:54:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-15 18:35:57 +0100 |
commit | b3beeeee2724b0664a2fc8682e1440d3fc31c6fe (patch) | |
tree | 0090946ff14e1295e497a6db764c9949bfb1c3cc /net/lapb/lapb_in.c | |
parent | 8e7ff4e7a2358fbbe3a5bbdb733e5cf5868cf1ff (diff) |
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 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions