Skip to content

Commit

Permalink
engines/sg: Removing useless variable assignment
Browse files Browse the repository at this point in the history
ret is set to -1 but the break statement will not use this value.

So let's remove this useless assignment which could be confusing.

Signed-off-by: Erwan Velu <[email protected]>
  • Loading branch information
ErwanAliasr1 committed Sep 8, 2021
1 parent 824d818 commit 691df59
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions engines/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,9 @@ static enum fio_q_status fio_sgio_rw_doio(struct thread_data *td,
if (__io_u == io_u)
break;

if (io_u_sync_complete(td, __io_u)) {
ret = -1;
if (io_u_sync_complete(td, __io_u))
break;
}

} while (1);

return FIO_Q_COMPLETED;
Expand Down

0 comments on commit 691df59

Please sign in to comment.