> I have noticed the update suggestion “USB: quirks: simplify quirk handling”.
> https://lore.kernel.org/linux-usb/[email protected]/
> https://lore.kernel.org/patchwork/patch/1308991/

I would like to point out that an acceptable patch can be generated for
the implementation of the function “quirks_param_set” according to
a known transformation pattern by the following SmPL script variant.

@adjustment@
identifier allocate, object, release;
type t;
@@
-if (object)
-{
-release(object);
-object = NULL;
-}
+release(object);
 object = allocate(..., sizeof(t), ...);


Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to