afs_bypasscache: parameters of afs_ReadNoCache can't be null
[openafs.git] / src / afs / afs_bypasscache.c
index dd6ff1c..18d6d6c 100644 (file)
@@ -492,7 +492,7 @@ afs_ReadNoCache(struct vcache *avc,
     /* the reciever will free this */
     areq = osi_Alloc(sizeof(struct vrequest));
 
-    if (avc && avc->vc_error) {
+    if (avc->vc_error) {
        code = EIO;
        afs_warn("afs_ReadNoCache VCache Error!\n");
        goto cleanup;