summaryrefslogtreecommitdiff
path: root/e2fsprogs/blkid/dev.c
diff options
context:
space:
mode:
authorMike Frysinger2005-06-11 22:37:25 +0000
committerMike Frysinger2005-06-11 22:37:25 +0000
commit7fde8debc450c19927b82e3434fc5d6a6dd4d35d (patch)
treeec0c844948d2fd786039f5ba39427a82e004506d /e2fsprogs/blkid/dev.c
parentd1a9d57bd6d9e40fb25564f10b0bd85f0a2c1e3a (diff)
downloadbusybox-7fde8debc450c19927b82e3434fc5d6a6dd4d35d.zip
busybox-7fde8debc450c19927b82e3434fc5d6a6dd4d35d.tar.gz
use malloc instead of xmalloc
Diffstat (limited to 'e2fsprogs/blkid/dev.c')
-rw-r--r--e2fsprogs/blkid/dev.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/e2fsprogs/blkid/dev.c b/e2fsprogs/blkid/dev.c
index 23af887..0e2b4e1 100644
--- a/e2fsprogs/blkid/dev.c
+++ b/e2fsprogs/blkid/dev.c
@@ -84,12 +84,10 @@ extern blkid_dev_iterate blkid_dev_iterate_begin(blkid_cache cache)
{
blkid_dev_iterate iter;
- iter = malloc(sizeof(struct blkid_struct_dev_iterate));
- if (iter) {
- iter->magic = DEV_ITERATE_MAGIC;
- iter->cache = cache;
- iter->p = cache->bic_devs.next;
- }
+ iter = xmalloc(sizeof(struct blkid_struct_dev_iterate));
+ iter->magic = DEV_ITERATE_MAGIC;
+ iter->cache = cache;
+ iter->p = cache->bic_devs.next;
return (iter);
}