projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
147fe61
)
sed-opal: Remove unnecessary ‘0’ values from err
author
Li zeming
<zeming@nfschina.com>
Wed, 6 Mar 2024 10:02:16 +0000
(18:02 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 6 Mar 2024 15:29:38 +0000
(08:29 -0700)
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>
block/sed-opal.c
patch
|
blob
|
history
diff --git
a/block/sed-opal.c
b/block/sed-opal.c
index e5b069dde905e75042f73b62a3be37aa98846374..b6887920a84e9b1ee6c7ef356d56be2a86c4ddc8 100644
(file)
--- 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)