]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - platform-intel.c
Remove scattered checks for malloc success.
[thirdparty/mdadm.git] / platform-intel.c
index cb6c7dc81b86f12bfee56a9348fac55651f24e0c..d6698c7af1c3aab8f3b75593edc928c26557eb00 100644 (file)
@@ -102,10 +102,10 @@ struct sys_dev *find_driver_devices(const char *bus, const char *driver)
 
                /* start / add list entry */
                if (!head) {
-                       head = malloc(sizeof(*head));
+                       head = xmalloc(sizeof(*head));
                        list = head;
                } else {
-                       list->next = malloc(sizeof(*head));
+                       list->next = xmalloc(sizeof(*head));
                        list = list->next;
                }