Skip to content

Commit 5f2ad31

Browse files
likunyuraxboe
authored andcommitted
sed-opal: Remove the ret variable from the function
The ret variable in the function has not yet been effective and can be removed. Signed-off-by: Li kunyu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 2449be8 commit 5f2ad31

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

block/sed-opal.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,10 +3108,9 @@ static int opal_read_table(struct opal_dev *dev,
31083108
{ read_table_data, rw_tbl },
31093109
{ end_opal_session, }
31103110
};
3111-
int ret = 0;
31123111

31133112
if (!rw_tbl->size)
3114-
return ret;
3113+
return 0;
31153114

31163115
return execute_steps(dev, read_table_steps,
31173116
ARRAY_SIZE(read_table_steps));
@@ -3125,10 +3124,9 @@ static int opal_write_table(struct opal_dev *dev,
31253124
{ write_table_data, rw_tbl },
31263125
{ end_opal_session, }
31273126
};
3128-
int ret = 0;
31293127

31303128
if (!rw_tbl->size)
3131-
return ret;
3129+
return 0;
31323130

31333131
return execute_steps(dev, write_table_steps,
31343132
ARRAY_SIZE(write_table_steps));

0 commit comments

Comments
 (0)