1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/udl
Jani Nikula f765063580 drm: use mem_is_zero() instead of !memchr_inv(s, 0, n)
Use the mem_is_zero() helper where possible.

Conversion done using cocci:

| @@
| expression PTR;
| expression SIZE;
| @@
|
|   <...
| (
| - memchr_inv(PTR, 0, SIZE) == NULL
| + mem_is_zero(PTR, SIZE)
| |
| - !memchr_inv(PTR, 0, SIZE)
| + mem_is_zero(PTR, SIZE)
| |
| - memchr_inv(PTR, 0, SIZE)
| + !mem_is_zero(PTR, SIZE)
| )
|   ...>

Reviewed-by: Kees Cook <kees@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240814100035.3100852-2-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
2024-08-16 12:07:46 +03:00
..
Kconfig drm/shmem-helper: Switch to vmf_insert_pfn 2021-08-12 21:41:10 +02:00
Makefile drm/udl: Untangle .get_modes() and .detect_ctx() 2024-05-13 13:35:52 +02:00
udl_drv.c drm: add missing MODULE_DESCRIPTION() macros 2024-06-10 12:44:39 +02:00
udl_drv.h drm/udl: Remove struct udl_connector 2024-05-13 13:35:53 +02:00
udl_edid.c drm: use mem_is_zero() instead of !memchr_inv(s, 0, n) 2024-08-16 12:07:46 +03:00
udl_edid.h drm/udl: Untangle .get_modes() and .detect_ctx() 2024-05-13 13:35:52 +02:00
udl_main.c drm/udl: delete dead code 2023-05-03 16:32:33 +02:00
udl_modeset.c drm/udl: Remove struct udl_connector 2024-05-13 13:35:53 +02:00
udl_proto.h drm/udl: Add constants for commands 2022-10-07 13:47:40 +02:00
udl_transfer.c drm/udl: Add constants for commands 2022-10-07 13:47:40 +02:00