Skip to content

Commit 147fe61

Browse files
Li zemingaxboe
authored andcommitted
sed-opal: Remove unnecessary ‘0’ values from error
error 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 f8c7511 commit 147fe61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/sed-opal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,7 +1208,7 @@ static int cmd_start(struct opal_dev *dev, const u8 *uid, const u8 *method)
12081208
static int start_opal_session_cont(struct opal_dev *dev)
12091209
{
12101210
u32 hsn, tsn;
1211-
int error = 0;
1211+
int error;
12121212

12131213
error = parse_and_check_status(dev);
12141214
if (error)
@@ -1350,7 +1350,7 @@ static int get_active_key_cont(struct opal_dev *dev)
13501350
{
13511351
const char *activekey;
13521352
size_t keylen;
1353-
int error = 0;
1353+
int error;
13541354

13551355
error = parse_and_check_status(dev);
13561356
if (error)

0 commit comments

Comments
 (0)