Re: [RFC] fbdev: Completing error handling for fb_alloc_cmap() calls

From: Markus Elfring
Date: Wed Jan 03 2024 - 04:06:36 EST


> @addition@
> @@
> +{
> +int rc =
> fb_alloc_cmap(...);
> +if (rc)
> + return rc;
> +}

How do you think about to apply this script for the semantic patch language
so that remaining update candidates will be found?


See also:
Clarification approach “Checking addition of local error code checks”
https://lore.kernel.org/cocci/913bb6fa-c168-46f7-ba39-5fdaae586b6e@xxxxxx/
https://sympa.inria.fr/sympa/arc/cocci/2024-01/msg00000.html


Do you find further change possibilities still relevant for 23 source files?

Regards,
Markus