From: Nicolas Palix Date: Sun, 6 Jun 2010 15:15:06 +0000 (+0200) Subject: Add scripts/coccinelle/err_cast.cocci X-Git-Tag: v2.6.36-rc1~545^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f853f8305bc2ab24a2f5fb24c4635c645cc7f9d1;p=pandora-kernel.git 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 Signed-off-by: Julia Lawall Signed-off-by: Michal Marek --- Reading git-diff-tree failed