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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 147fe61 commit 217fcc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)