diff options
author | Jan Höppner <[email protected]> | 2023-09-15 15:09:59 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-10-04 08:04:08 -0600 |
commit | d323c1a9477a82843795f10fb23f1634cea44007 (patch) | |
tree | a86d2ae6890696c43eddcbe9c832fd02372c01b4 | |
parent | 5e9b7cfc209b84d135993b8cb75ea383f24b2bba (diff) |
partitions/ibm: Remove unnecessary memset
The data holding the volume label information is zeroed in case no valid
volume label was found. Since the label information isn't used in that
case, zeroing the data doesn't provide any value whatsoever.
Remove the unnecessary memset() call accordingly.
Signed-off-by: Jan Höppner <[email protected]>
Reviewed-by: Stefan Haberland <[email protected]>
Signed-off-by: Stefan Haberland <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | block/partitions/ibm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/partitions/ibm.c b/block/partitions/ibm.c index 403756dbd50d..49eb0e354fc4 100644 --- a/block/partitions/ibm.c +++ b/block/partitions/ibm.c @@ -124,8 +124,6 @@ static int find_label(struct parsed_partitions *state, break; } } - if (!found) - memset(label, 0, sizeof(*label)); return found; } |