staging: lustre: use ERR_CAST() function
authorLaurent Navet <laurent.navet@gmail.com>
Fri, 5 Jul 2013 12:26:33 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 20:47:01 +0000 (13:47 -0700)
commit1dc8548c307c1cbab90cb9c754effb2d030cafdd
treef204f688efbe1978d6cff8abdbdc90084017355d
parentc4f395539790680e6ab772876ddca4620e019c14
staging: lustre: use ERR_CAST() function

use ERR_CAST() function instead of ERR_PTR() and PTR_ERR()
found using coccinelle and err_cast.cocci

Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_nfs.c
drivers/staging/lustre/lustre/llite/rw.c
drivers/staging/lustre/lustre/obdclass/local_storage.c