]> git.ipfire.org Git - thirdparty/mdadm.git/commit
mdadm: Remove dead code in imsm_fix_size_mismatch
authorLukasz Florczak <lukasz.florczak@linux.intel.com>
Fri, 22 Jul 2022 06:43:48 +0000 (08:43 +0200)
committerJes Sorensen <jsorensen@fb.com>
Thu, 28 Jul 2022 20:53:48 +0000 (16:53 -0400)
commit751757620afb25a4c02746bf8368a7b5f22352ec
tree08f458318f4dbf03a22526001fbeccb0fae2a40c
parent42e02e613fb0b4a2c0c0d984b9e6e2933875bb44
mdadm: Remove dead code in imsm_fix_size_mismatch

imsm_create_metadata_update_for_size_change() that returns u_size value
could return 0 in the past. As its behavior changed, and returned value
is always the size of imsm_update_size_change structure, check for
u_size is no longer needed.

Signed-off-by: Lukasz Florczak <lukasz.florczak@linux.intel.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
super-intel.c