Skip to content

Commit 217fcc4

Browse files
Li zemingaxboe
authored andcommitted
sed-opal: Remove unnecessary ‘0’ values from err
err is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming <zeming@nfschina.com> Link: https://lore.kernel.org/r/20240306100216.69340-1-zeming@nfschina.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 147fe61 commit 217fcc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

block/sed-opal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2153,7 +2153,7 @@ static int lock_unlock_locking_range(struct opal_dev *dev, void *data)
21532153
u8 lr_buffer[OPAL_UID_LENGTH];
21542154
struct opal_lock_unlock *lkul = data;
21552155
u8 read_locked = 1, write_locked = 1;
2156-
int err = 0;
2156+
int err;
21572157

21582158
if (build_locking_range(lr_buffer, sizeof(lr_buffer),
21592159
lkul->session.opal_key.lr) < 0)

0 commit comments

Comments
 (0)