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
..
2023-11-23 09:01:47 +01:00
2024-05-10 04:34:52 +09:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-28 18:56:03 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2023-12-04 09:41:34 +01:00
2023-11-23 09:01:46 +01:00
2023-12-04 09:41:59 +01:00
2024-08-16 12:07:46 +03:00
2024-05-27 10:13:55 +02:00
2023-11-23 09:01:46 +01:00
2023-11-28 13:55:44 +01:00
2023-11-23 09:01:46 +01:00
2023-11-28 18:56:03 +01:00
2023-12-04 09:41:48 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2024-04-29 12:31:28 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2024-04-25 17:05:48 +03:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-28 18:56:03 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-12-15 14:04:08 +01:00
2023-11-28 18:56:03 +01:00
2023-12-10 10:38:47 -08:00
2023-11-23 09:01:47 +01:00
2023-12-08 10:25:24 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:46 +01:00
2024-07-25 14:05:12 +02:00
2023-11-28 18:56:03 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-28 13:55:37 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:45 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:46 +01:00
2023-11-23 09:01:47 +01:00
2023-11-23 09:01:47 +01:00
2024-05-19 09:21:03 -07:00
2023-11-23 09:01:46 +01:00
2023-12-15 14:04:21 +01:00
2023-11-28 13:57:43 +01:00