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>
This commit is contained in:
Laurent Navet 2013-07-05 14:26:33 +02:00 • committed by Greg Kroah-Hartman
commit 1dc8548c30
3 changed files with 4 additions and 4 deletions