Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <kunyu@nfschina.com>
Link: https://lore.kernel.org/r/20240306100659.106521-1-kunyu@nfschina.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Li kunyu and committed by
Jens Axboe
2449be8c 217fcc48

+2 -2
+2 -2
block/sed-opal.c
··· 2576 2576 const struct opal_step discovery0_step = { 2577 2577 opal_discovery0, discv 2578 2578 }; 2579 - int ret = 0; 2579 + int ret; 2580 2580 2581 2581 mutex_lock(&dev->dev_lock); 2582 2582 setup_opal_dev(dev); ··· 3065 3065 { 3066 3066 struct opal_suspend_data *suspend; 3067 3067 bool was_failure = false; 3068 - int ret = 0; 3068 + int ret; 3069 3069 3070 3070 if (!dev) 3071 3071 return false;