LINUX: Check afs_lookup return code explicitly
authorAndrew Deason <adeason@sinenomine.net>
Thu, 24 Jul 2014 16:07:45 +0000 (11:07 -0500)
committerD Brashear <shadow@your-file-system.com>
Wed, 6 Aug 2014 14:28:22 +0000 (10:28 -0400)
commit2edf5c0382385f898a017fd8e0e2429f8b2b3520
tree3588ab28680930bc17a34e5e02b1757eb9ba2fcc
parent774d77e056515ae3e87c8f0be8e133c3cdb36bbb
LINUX: Check afs_lookup return code explicitly

Checking if the returned vcache is NULL or not is a bit of an indirect
way to check if an error occurred. Just check the return code itself,
to make sure we notice if any kind of error is reported.

Suggested by Chas Williams.

Change-Id: I61cc7304e9885ddaaebe96db3b12457cb6224420
Reviewed-on: http://gerrit.openafs.org/11321
Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/afs/LINUX/osi_vnodeops.c