mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
FBSD: Remove unnecessary explicit osi_fbsd_alloc
AFS_KALLOC is already defined to be osi_fbsd_alloc on FBSD, so this extra #ifdef here is completely unnecessary. Remove it. Do the same for AFS_KFREE/osi_fbsd_free. Change-Id: I3e42ec433a732402cc9de9ba9c035774ec29c2a5 Reviewed-on: https://gerrit.openafs.org/13708 Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
d13b647aa3
commit
ad1fe5e1a8
@ -52,8 +52,6 @@ afs_osi_Alloc(size_t size)
|
|||||||
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage += size);
|
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage += size);
|
||||||
#ifdef AFS_LINUX20_ENV
|
#ifdef AFS_LINUX20_ENV
|
||||||
return osi_linux_alloc(size, 1);
|
return osi_linux_alloc(size, 1);
|
||||||
#elif defined(AFS_FBSD_ENV)
|
|
||||||
return osi_fbsd_alloc(size, 1);
|
|
||||||
#else
|
#else
|
||||||
return AFS_KALLOC(size);
|
return AFS_KALLOC(size);
|
||||||
#endif
|
#endif
|
||||||
@ -70,8 +68,6 @@ afs_osi_Free(void *x, size_t asize)
|
|||||||
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage -= asize);
|
AFS_STATS(afs_stats_cmperf.OutStandingMemUsage -= asize);
|
||||||
#if defined(AFS_LINUX20_ENV)
|
#if defined(AFS_LINUX20_ENV)
|
||||||
osi_linux_free(x);
|
osi_linux_free(x);
|
||||||
#elif defined(AFS_FBSD_ENV)
|
|
||||||
osi_fbsd_free(x);
|
|
||||||
#else
|
#else
|
||||||
AFS_KFREE(x, asize);
|
AFS_KFREE(x, asize);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user