summaryrefslogtreecommitdiffstats
path: root/scripts/coccinelle/deref_null.cocci
diff options
context:
space:
mode:
authorNicolas Palix2010-06-06 17:15:06 +0200
committerMichal Marek2010-06-12 00:00:29 +0200
commitf853f8305bc2ab24a2f5fb24c4635c645cc7f9d1 (patch)
treedd397d99cbe8974a9a7daac55a294a7b98c28afb /scripts/coccinelle/deref_null.cocci
parentAdd scripts/coccinelle/resource_size.cocci (diff)
downloadkernel-qcow2-linux-f853f8305bc2ab24a2f5fb24c4635c645cc7f9d1.tar.gz
kernel-qcow2-linux-f853f8305bc2ab24a2f5fb24c4635c645cc7f9d1.tar.xz
kernel-qcow2-linux-f853f8305bc2ab24a2f5fb24c4635c645cc7f9d1.zip
Add scripts/coccinelle/err_cast.cocci
Add a Coccinelle file to use the ERR_CAST function Before the release 2.6.25, one had to use ERR_PTR(PTR_ERR(...)) to convert the pointer type of an error. Since then, the function ERR_CAST has been available for that purpose. Signed-off-by: Nicolas Palix <npalix@diku.dk> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/coccinelle/deref_null.cocci')
0 files changed, 0 insertions, 0 deletions