summaryrefslogtreecommitdiff
path: root/e2fsprogs/old_e2fsprogs/blkid/cache.c
diff options
context:
space:
mode:
authorDenis Vlasenko2008-03-17 09:05:21 +0000
committerDenis Vlasenko2008-03-17 09:05:21 +0000
commitd02db892440499a072ea8c83c2370e9d9c103098 (patch)
tree3b91afcc3cc91b485e23807d75c546b2b73b1940 /e2fsprogs/old_e2fsprogs/blkid/cache.c
parent85c247161b9e1e7c71ebcb874ed7b6a23b6a5b50 (diff)
downloadbusybox-d02db892440499a072ea8c83c2370e9d9c103098.zip
busybox-d02db892440499a072ea8c83c2370e9d9c103098.tar.gz
clean up TODO file. No real code changes.
Diffstat (limited to 'e2fsprogs/old_e2fsprogs/blkid/cache.c')
-rw-r--r--e2fsprogs/old_e2fsprogs/blkid/cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/cache.c b/e2fsprogs/old_e2fsprogs/blkid/cache.c
index 9bae6fb..d1d2914 100644
--- a/e2fsprogs/old_e2fsprogs/blkid/cache.c
+++ b/e2fsprogs/old_e2fsprogs/blkid/cache.c
@@ -35,8 +35,7 @@ int blkid_get_cache(blkid_cache *ret_cache, const char *filename)
DBG(DEBUG_CACHE, printf("creating blkid cache (using %s)\n",
filename ? filename : "default cache"));
- if (!(cache = (blkid_cache) calloc(1, sizeof(struct blkid_struct_cache))))
- return -BLKID_ERR_MEM;
+ cache = xzalloc(sizeof(struct blkid_struct_cache));
INIT_LIST_HEAD(&cache->bic_devs);
INIT_LIST_HEAD(&cache->bic_tags);