Skip to content

Commit 2449be8

Browse files
likunyuraxboe
authored andcommitted
sed-opal: Remove unnecessary ‘0’ values from ret
ret is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li kunyu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 217fcc4 commit 2449be8

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
@@ -2576,7 +2576,7 @@ static int opal_get_discv(struct opal_dev *dev, struct opal_discovery *discv)
25762576
const struct opal_step discovery0_step = {
25772577
opal_discovery0, discv
25782578
};
2579-
int ret = 0;
2579+
int ret;
25802580

25812581
mutex_lock(&dev->dev_lock);
25822582
setup_opal_dev(dev);
@@ -3065,7 +3065,7 @@ bool opal_unlock_from_suspend(struct opal_dev *dev)
30653065
{
30663066
struct opal_suspend_data *suspend;
30673067
bool was_failure = false;
3068-
int ret = 0;
3068+
int ret;
30693069

30703070
if (!dev)
30713071
return false;

0 commit comments

Comments
 (0)