coccinelle: ifnullfree: various cleanups
authorJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 26 Oct 2015 21:28:25 +0000 (22:28 +0100)
committerMichal Marek <mmarek@suse.cz>
Mon, 26 Oct 2015 21:41:13 +0000 (22:41 +0100)
commitca047e715c638eacf58cb830c3ef36cecc45c3f8
tree3310195534b9f211a88a322f6937efde527aec00
parent41167d072b8626ed14e80241c71beb99ac65db53
coccinelle: ifnullfree: various cleanups

Adjust tests to compare against NULL, to match cases that explicitly make
that comparison.

Remove removal and re-addition of freeing functions.

Add position variable on usb_free_urb in the non-patch case.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/coccinelle/free/ifnullfree.cocci