mbox series

[0/2] Small cleanups

Message ID 20191020234220.14888-1-damien.lemoal@wdc.com (mailing list archive)
Headers show
Series Small cleanups | expand

Message

Damien Le Moal Oct. 20, 2019, 11:42 p.m. UTC
This is series is a couple of cleanup patches. The first one cleans up
the helper function nvme_block_nr() using SECTOR_SHIFT instead of the
hard coded value 9. The second patch introduces the nvme_block_sect()
helper to convert a device block number into a 512B sector value.

Please consider this series for kernel 5.5.

Damien Le Moal (2):
  nvme: Cleanup nvme_block_nr()
  nvme: Introduce nvme_block_sect()

 drivers/nvme/host/core.c | 14 +++++++-------
 drivers/nvme/host/nvme.h | 13 ++++++++++++-
 2 files changed, 19 insertions(+), 8 deletions(-)