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>
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;
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;
}
closedir(dir);
- return 0;
}
static void print_found_intel_controllers(struct sys_dev *elem)