summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2024-03-06 13:02:16 +0300
committerJens Axboe <axboe@kernel.dk>2024-03-06 18:29:38 +0300
commit217fcc48074be4f526190675140a478ee795d90d (patch)
tree06a02a4f76284b8a6f7df9235c4ca9fc442122dd /block
parent147fe6133477b9654f0ede339ef9267425955e88 (diff)
downloadlinux-217fcc48074be4f526190675140a478ee795d90d.tar.xz
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>
Diffstat (limited to 'block')
-rw-r--r--block/sed-opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/sed-opal.c b/block/sed-opal.c
index e5b069dde905..b6887920a84e 100644
--- a/block/sed-opal.c
+++ b/block/sed-opal.c
@@ -2153,7 +2153,7 @@ static int lock_unlock_locking_range(struct opal_dev *dev, void *data)
u8 lr_buffer[OPAL_UID_LENGTH];
struct opal_lock_unlock *lkul = data;
u8 read_locked = 1, write_locked = 1;
- int err = 0;
+ int err;
if (build_locking_range(lr_buffer, sizeof(lr_buffer),
lkul->session.opal_key.lr) < 0)