Message ID | 20240220105612.31058-5-mateusz.kusiak@intel.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
Series | SAST fixes | expand |
diff --git a/Grow.c b/Grow.c index f95dae82ef0d..dad7294dac32 100644 --- a/Grow.c +++ b/Grow.c @@ -2097,11 +2097,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);
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> --- Grow.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)