diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index bf019c460a..610f1c6cc1 100644 --- a/src/afs/afs_fetchstore.c +++ b/src/afs/afs_fetchstore.c @@ -1114,9 +1114,7 @@ afs_CacheFetchProc(struct afs_conn *tc, struct rx_connection *rxconn, osi_GetuTime(&xferStartTime); #endif /* AFS_NOSTATS */ - if (adc) { - adc->validPos = base; - } + adc->validPos = base; if ( !code ) do { if (avc->f.states & CForeign) { diff --git a/src/afs/afs_prototypes.h b/src/afs/afs_prototypes.h index 13e336a8fb..5418036b47 100644 --- a/src/afs/afs_prototypes.h +++ b/src/afs/afs_prototypes.h @@ -503,7 +503,8 @@ extern int afs_CacheFetchProc(struct afs_conn *tc, struct rx_connection *rxconn, struct osi_file *fP, afs_size_t abase, struct dcache *adc, struct vcache *avc, afs_int32 size, - struct afs_FetchOutput *tsmall); + struct afs_FetchOutput *tsmall) + AFS_NONNULL((5)); /* afs_memcache.c */ extern int afs_InitMemCache(int blkCount, int blkSize, int flags);