diff options
author | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 19:29:46 +0200 |
---|---|---|
committer | Jes Sorensen <jsorensen@fb.com> | 2017-05-16 19:29:46 +0200 |
commit | a0628abf2bf87c69bec3384f90aae2398a8e64aa (patch) | |
tree | 55d3e36e96c716d479753074e1f4597ac39a5b35 /super-ddf.c | |
parent | mdadm: Uninitialized variable rdev (diff) | |
download | mdadm-a0628abf2bf87c69bec3384f90aae2398a8e64aa.tar.xz mdadm-a0628abf2bf87c69bec3384f90aae2398a8e64aa.zip |
super-ddf: sysfs_read() takes a pointer as device name argument
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index ac14017b..50197a8f 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -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 || |