• André Almeida's avatar
    blk-mq: remove needless goto from blk_mq_get_driver_tag · 1fead718
    André Almeida authored
    The only usage of the label "done" is when (rq->tag != -1) at the
    beginning of the function. Rather than jumping to label, we can just
    remove this label and execute the code at the "if". Besides that, the
    code that would be executed after the label "done" is the return of the
    logical expression (rq->tag != -1) but since we are already inside the
    if, we now that this is true. Remove the label and replace the goto with
    the proper result of the label.
    Signed-off-by: default avatarAndré Almeida <andrealmeid@collabora.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    1fead718
blk-mq.c 86 KB