projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8c7511
)
sed-opal: Remove unnecessary ‘0’ values from error
author
Li zeming
<zeming@nfschina.com>
Wed, 6 Mar 2024 09:56:08 +0000
(17:56 +0800)
committer
Jens Axboe
<axboe@kernel.dk>
Wed, 6 Mar 2024 15:29:31 +0000
(08:29 -0700)
error 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/20240306095608.26839-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 3d9e9cd250bd541f3166932bde9e43b35c13f13a..e5b069dde905e75042f73b62a3be37aa98846374 100644
(file)
--- a/
block/sed-opal.c
+++ b/
block/sed-opal.c
@@
-1208,7
+1208,7
@@
static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method)
static int start_opal_session_cont(struct opal_dev *dev)
{
u32 hsn, tsn;
- int error
= 0
;
+ int error;
error = parse_and_check_status(dev);
if (error)
@@
-1350,7
+1350,7
@@
static int get_active_key_cont(struct opal_dev *dev)
{
const char *activekey;
size_t keylen;
- int error
= 0
;
+ int error;
error = parse_and_check_status(dev);
if (error)