]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
super-intel: Make print_found_intel_controllers() return void
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 16:25:16 +0000 (11:25 -0500)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Mar 2016 16:35:34 +0000 (11:35 -0500)
The return value from print_found_intel_controllers() is never used,
so lets make it return void.

Reported-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
super-intel.c

index e1bee7573e3b1692edbc9127c4c8ce81f34d0d6f..3fe304aad927f3e0077fd67bb9ebddd8f74c6bf4 100644 (file)
@@ -1766,7 +1766,7 @@ static int ahci_enumerate_ports(const char *hba_path, int port_count, int host_b
        return err;
 }
 
-static int print_vmd_attached_devs(struct sys_dev *hba)
+static void print_vmd_attached_devs(struct sys_dev *hba)
 {
        struct dirent *ent;
        DIR *dir;
@@ -1775,14 +1775,14 @@ static int print_vmd_attached_devs(struct sys_dev *hba)
        char *c, *rp;
 
        if (hba->type != SYS_DEV_VMD)
-               return 1;
+               return;
 
        /* scroll through /sys/dev/block looking for devices attached to
         * this hba
         */
        dir = opendir("/sys/bus/pci/drivers/nvme");
        if (!dir)
-               return 1;
+               return;
 
        for (ent = readdir(dir); ent; ent = readdir(dir)) {
                int n;
@@ -1818,7 +1818,6 @@ static int print_vmd_attached_devs(struct sys_dev *hba)
        }
 
        closedir(dir);
-       return 0;
 }
 
 static void print_found_intel_controllers(struct sys_dev *elem)