From 0683c04a61ab8946fe715500888a983172298972 Mon Sep 17 00:00:00 2001 From: Chas Williams Date: Wed, 6 Jan 2010 16:48:41 +0000 Subject: [PATCH] Unix CM: Always use ->storeproc() Always use ->storeproc() and avoid branching "do or do not -- there is no try" Change-Id: Idbcf0c80930d6a433b4c921b44db28cb6fbbf9bb Reviewed-on: http://gerrit.openafs.org/1073 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/afs/afs_fetchstore.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/afs/afs_fetchstore.c b/src/afs/afs_fetchstore.c index ee252f1281..dd9c2b80fa 100644 --- a/src/afs/afs_fetchstore.c +++ b/src/afs/afs_fetchstore.c @@ -515,12 +515,8 @@ afs_CacheStoreDCaches(struct vcache *avc, struct dcache **dclist, #endif /* AFS_NOSTATS */ bytesXferred = 0; - if (ops->storeproc) - code = (*ops->storeproc)(ops, rock, tdc, shouldwake, + code = (*ops->storeproc)(ops, rock, tdc, shouldwake, &bytesXferred); - else - code = afs_GenericStoreProc(ops, rock, tdc, shouldwake, - &bytesXferred); afs_Trace4(afs_iclSetp, CM_TRACE_STOREPROC, ICL_TYPE_POINTER, avc, ICL_TYPE_FID, &(avc->f.fid), ICL_TYPE_OFFSET,