Commit 147fe613 authored by Li zeming's avatar Li zeming Committed by Jens Axboe

sed-opal: Remove unnecessary ‘0’ values from error

error is assigned first, so it does not need to initialize the assignment.
Signed-off-by: default avatarLi zeming <zeming@nfschina.com>
Link: https://lore.kernel.org/r/20240306095608.26839-1-zeming@nfschina.comSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f8c7511d
...@@ -1208,7 +1208,7 @@ static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method) ...@@ -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) static int start_opal_session_cont(struct opal_dev *dev)
{ {
u32 hsn, tsn; u32 hsn, tsn;
int error = 0; int error;
error = parse_and_check_status(dev); error = parse_and_check_status(dev);
if (error) if (error)
...@@ -1350,7 +1350,7 @@ static int get_active_key_cont(struct opal_dev *dev) ...@@ -1350,7 +1350,7 @@ static int get_active_key_cont(struct opal_dev *dev)
{ {
const char *activekey; const char *activekey;
size_t keylen; size_t keylen;
int error = 0; int error;
error = parse_and_check_status(dev); error = parse_and_check_status(dev);
if (error) if (error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment