Re: [v2] coccinelle: semantic code search for missing of_node_put
From: Markus Elfring
Date: Thu Jul 04 2019 - 02:28:46 EST
> We tested and found that both <...x...> and <+... x ...+> variants work fine.
Is the difference in the functionality from this SmPL construct clear already?
> We use <... x ...> instead of <+... x ...+> here to eliminate the following false positives:
Do we stumble on another software design challenge?
For which function parameter will the specified variable be required finally?
> 486 asd = v4l2_async_notifier_add_fwnode_subdev(
> 487 &camss->notifier, of_fwnode_handle(remote), ---> v4l2_async_notifier_add_fwnode_subdev will pass remote to camss->notifier.
> 488 sizeof(*csd));
Should any more special cases be taken better into account?
Regards,
Markus