NFS: remove unnecessary test for IS_ERR(cred)
authorNeilBrown <neilb@suse.com>
Wed, 19 Dec 2018 23:29:55 +0000 (10:29 +1100)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 2 Jan 2019 17:05:19 +0000 (12:05 -0500)
commitc2c7d84fd173aff121ffd45cf15277eff43348d3
treeee0a8951d57bcdcb47b6ac064b0fe2c1e9169e9a
parent07e10308ee5da8e6132e0b737ece1c99dd651fb6
NFS: remove unnecessary test for IS_ERR(cred)

As gte_current_cred() cannot return an error,
this test is not necessary.
It hasn't been necessary for years, but it wasn't so obvious
before.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/unlink.c