diff options
author | Xiao Ni <xni@redhat.com> | 2024-07-26 09:14:14 +0200 |
---|---|---|
committer | Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com> | 2024-08-05 11:14:04 +0200 |
commit | 7904dc1c576a742c601c40dab4d0a6e562c4d00c (patch) | |
tree | 0e893409317a230de759d9b603f96fe26d47fb18 /super1.c | |
parent | mdadm/super1: fix coverity issue CHECKED_RETURN (diff) | |
download | mdadm-7904dc1c576a742c601c40dab4d0a6e562c4d00c.tar.xz mdadm-7904dc1c576a742c601c40dab4d0a6e562c4d00c.zip |
mdadm/super1: fix coverity issue DEADCODE
optimal_space is at most 2046. So space can't be larger than UINT16_MAX.
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Mariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>
Diffstat (limited to '')
-rw-r--r-- | super1.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -1466,8 +1466,6 @@ static int update_super1(struct supertype *st, struct mdinfo *info, __le32_to_cpu(sb->chunksize)); if (space > optimal_space) space = optimal_space; - if (space > UINT16_MAX) - space = UINT16_MAX; } sb->ppl.offset = __cpu_to_le16(offset); |