target: Use ERR_CAST inlined function
authorThomas Meyer <thomas@m3y3r.de>
Mon, 1 Aug 2011 21:58:18 +0000 (23:58 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 22 Aug 2011 19:26:15 +0000 (19:26 +0000)
commite1750ba20f0d850c38820190ccbf0f647723091a
tree5026dff79f550661ed0dfb4a6e4bc0b649a29e7b
parent052605c6caa3e1edf8eee8fe5fe6d53f5721f39a
target: Use ERR_CAST inlined function

Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...))

The semantic patch that makes this output is available
in scripts/coccinelle/api/err_cast.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_configfs.c
drivers/target/target_core_fabric_configfs.c