staging: lustre: llite: Remove IS_ERR tests
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sun, 21 Feb 2016 06:04:48 +0000 (11:34 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:11:01 +0000 (22:11 -0800)
commit020ecc6f3229d0413e596a941b52263285c601f6
tree68c1f13719d6d5dcadb44016e88e5167223bfa0a
parentb1752e864f2c2034fe0a7f9fe5f35f8eed06da20
staging: lustre: llite: Remove IS_ERR tests

ll_iget() has been modified to always return NULL in case of error and
not a ERR_PTR.

Consequently, remove unnecessary IS_ERR tests as now ll_iget()
function can never return a ERR_PTR.

Additionally, reinitialising root and inode to NULL has been removed
since they have already been tested for the same.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/llite_lib.c
drivers/staging/lustre/lustre/llite/namei.c