diff options
author | Mateusz Kusiak <mateusz.kusiak@intel.com> | 2024-02-20 11:56:10 +0100 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-02-23 12:43:53 +0100 |
commit | e44d13f466e30c018887cd5aaf1212ed9f510813 (patch) | |
tree | 614f920a24e80e8c4c9ae804767113e1c5f68081 /Grow.c | |
parent | Monitor: open file before check in check_one_sharer() (diff) | |
download | mdadm-e44d13f466e30c018887cd5aaf1212ed9f510813.tar.xz mdadm-e44d13f466e30c018887cd5aaf1212ed9f510813.zip |
Grow: remove dead condition in Grow_reshape()
Remove dead "if" condition from Grow_reshape(). Sysfs read check is
performed earlier in the code.
Signed-off-by: Mateusz Kusiak <mateusz.kusiak@intel.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to 'Grow.c')
-rw-r--r-- | Grow.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -2098,11 +2098,7 @@ int Grow_reshape(char *devname, int fd, /* got truncated to 32bit, write to * component_size instead */ - if (sra) - rv = sysfs_set_num(sra, NULL, - "component_size", s->size); - else - rv = -1; + rv = sysfs_set_num(sra, NULL, "component_size", s->size); } else { rv = md_set_array_info(fd, &array); |