]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: code cleanup for nvme_alloc_host_mem()
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tue, 2 Jun 2020 02:41:14 +0000 (19:41 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 8 Jul 2020 14:16:16 +0000 (16:16 +0200)
commit6f480d6d512827da53d74ea9934279bcdff21e76
treeeae2242cd3383ea4ac71dd80a4ac58d965ec8780
parent2ea7b55ce614d4c4ed5763ad036d2a0b7e9a9b1b
nvme-pci: code cleanup for nvme_alloc_host_mem()

Although use of for loop is preferred it is not a common practice to
have 80 char long for loop initialization and comparison section.

Use temp variables for calculating values and replace them in the
for loop with size of all variables to set to u64 since preferred
variable is declared as u64.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/pci.c