mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-30 23:54:04 +08:00
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 <zeming@nfschina.com> Link: https://lore.kernel.org/r/20240306095608.26839-1-zeming@nfschina.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
f8c7511db0
commit
147fe61334
@ -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)
|
||||
{
|
||||
u32 hsn, tsn;
|
||||
int error = 0;
|
||||
int error;
|
||||
|
||||
error = parse_and_check_status(dev);
|
||||
if (error)
|
||||
@ -1350,7 +1350,7 @@ static int get_active_key_cont(struct opal_dev *dev)
|
||||
{
|
||||
const char *activekey;
|
||||
size_t keylen;
|
||||
int error = 0;
|
||||
int error;
|
||||
|
||||
error = parse_and_check_status(dev);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user