Coccinelle Archive on
 help / color / Atom feed
* [Cocci] Checking adjustments for pointer resets with SmPL
@ 2020-09-21 15:34 Markus Elfring
  2020-09-21 17:47 ` Markus Elfring
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Elfring @ 2020-09-21 15:34 UTC (permalink / raw)
  To: Coccinelle


I have noticed the update suggestion “USB: quirks: simplify quirk handling”.

Thus I converted a patch hunk into the following script variant for
the semantic patch language (according to the software “Coccinelle 1.0.8-00177-g28737419”).

identifier allocate, object, release;
-if (object)
-object = NULL;
 object = allocate(..., sizeof(...), ...);

Now I wonder at the moment why a known patch is not generated.
(An error message is not displayed.)

elfring@Sonne:~/Projekte/Linux/next-patched> spatch drivers/usb/core/quirks.c ~/Projekte/Coccinelle/janitor/simplify_pointer_reset2.cocci

Cocci mailing list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 15:34 [Cocci] Checking adjustments for pointer resets with SmPL Markus Elfring
2020-09-21 17:47 ` Markus Elfring

Coccinelle Archive on

Archives are clonable:
	git clone --mirror cocci/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 cocci cocci/ \
	public-inbox-index cocci

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone