aboutsummaryrefslogtreecommitdiff
path: root/stand/libofw/devicename.c
diff options
context:
space:
mode:
Diffstat (limited to 'stand/libofw/devicename.c')
-rw-r--r--stand/libofw/devicename.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stand/libofw/devicename.c b/stand/libofw/devicename.c
index 46a9717fdda5..f6419632c6bc 100644
--- a/stand/libofw/devicename.c
+++ b/stand/libofw/devicename.c
@@ -98,7 +98,7 @@ ofw_common_parsedev(struct devdesc **dev, const char *devspec, const char **path
if (ofw_path_to_handle(devspec, ofwtype, &rem_path) == -1)
return (ENOENT);
- idev = calloc(sizeof(struct ofw_devdesc), 1);
+ idev = malloc(sizeof(struct ofw_devdesc));
if (idev == NULL) {
printf("ofw_parsedev: malloc failed\n");
return (ENOMEM);