mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Unix CM: Don't zero args on dcache failure
Even if allocating the dcache fails, there's no point zeroing the parameters to the allocation function, as those changes aren't visible outside of that function. Caught by clang-analyzer Change-Id: Ieb91b525e818b73e38b8d78a55d170d36273177c Reviewed-on: http://gerrit.openafs.org/9234 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil> Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
parent
983d67616b
commit
e76966e22e
@ -3319,7 +3319,6 @@ afs_dcacheInit(int afiles, int ablocks, int aDentries, int achunk, int aflags)
|
||||
afs_warn("afsd: memory cache too large for available memory.\n");
|
||||
afs_warn("afsd: AFS files cannot be accessed.\n\n");
|
||||
dcacheDisabled = 1;
|
||||
afiles = ablocks = 0;
|
||||
} else
|
||||
afs_warn("Memory cache: Allocating %d dcache entries...",
|
||||
aDentries);
|
||||
|
Loading…
Reference in New Issue
Block a user