virtio-blk: remove unneeded "likely" statements
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Sun, 5 Sep 2021 08:57:17 +0000 (11:57 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 6 Sep 2021 11:20:56 +0000 (07:20 -0400)
commit6105d1fe6f4c24ce8c13e2e6568b16b76e04983d
tree506ebbadb6d079c551de60d12090131d80f1058b
parent81a83d7f4cfcb255c040df09ce83249fabf8733a
virtio-blk: remove unneeded "likely" statements

Usually we use "likely/unlikely" to optimize the fast path. Remove
redundant "likely/unlikely" statements in the control path to simplify
the code and make it easier to read.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Link: https://lore.kernel.org/r/20210905085717.7427-1-mgurtovoy@nvidia.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Chaitanya Kulkarni <ckulkarnilinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
drivers/block/virtio_blk.c