super-ddf: sysfs_read() takes a pointer as device name argument

Signed-off-by: Jes Sorensen <jsorensen@fb.com>
This commit is contained in:
Jes Sorensen 2017-05-16 13:29:46 -04:00
parent a3476c9223
commit a0628abf2b
1 changed files with 1 additions and 1 deletions

View File

@ -3557,7 +3557,7 @@ static int load_super_ddf_all(struct supertype *st, int fd,
char nm[20];
int dfd;
sra = sysfs_read(fd, 0, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE);
sra = sysfs_read(fd, NULL, GET_LEVEL|GET_VERSION|GET_DEVS|GET_STATE);
if (!sra)
return 1;
if (sra->array.major_version != -1 ||