Commit b640201
block: null_blk: cleanup null_queue_rq()
Use a local struct request pointer variable to avoid having to
dereference struct blk_mq_queue_data multiple times. While at it, also
fix the function argument indentation and remove a useless "else" after
a return.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20230314041106.19173-2-damien.lemoal@opensource.wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 63f8865 commit b640201
1 file changed
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1657 | 1657 | | |
1658 | 1658 | | |
1659 | 1659 | | |
1660 | | - | |
| 1660 | + | |
1661 | 1661 | | |
1662 | | - | |
| 1662 | + | |
| 1663 | + | |
1663 | 1664 | | |
1664 | | - | |
1665 | | - | |
| 1665 | + | |
| 1666 | + | |
1666 | 1667 | | |
1667 | 1668 | | |
1668 | 1669 | | |
| |||
1671 | 1672 | | |
1672 | 1673 | | |
1673 | 1674 | | |
1674 | | - | |
| 1675 | + | |
1675 | 1676 | | |
1676 | 1677 | | |
1677 | | - | |
1678 | | - | |
| 1678 | + | |
| 1679 | + | |
1679 | 1680 | | |
1680 | | - | |
| 1681 | + | |
1681 | 1682 | | |
1682 | | - | |
| 1683 | + | |
1683 | 1684 | | |
1684 | 1685 | | |
1685 | 1686 | | |
1686 | 1687 | | |
1687 | 1688 | | |
1688 | 1689 | | |
1689 | 1690 | | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
1693 | | - | |
| 1691 | + | |
| 1692 | + | |
1694 | 1693 | | |
1695 | 1694 | | |
1696 | 1695 | | |
1697 | 1696 | | |
1698 | | - | |
| 1697 | + | |
1699 | 1698 | | |
1700 | 1699 | | |
1701 | 1700 | | |
1702 | 1701 | | |
1703 | 1702 | | |
1704 | 1703 | | |
1705 | | - | |
| 1704 | + | |
1706 | 1705 | | |
1707 | 1706 | | |
1708 | 1707 | | |
| |||
0 commit comments