]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme: add new line after variable declatation
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 1 Mar 2021 02:06:11 +0000 (18:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Oct 2022 08:37:44 +0000 (10:37 +0200)
[ Upstream commit f3d27362f85fe58012810a3701ed15427d016635 ]

Add a new line in functions nvme_pr_preempt(), nvme_pr_clear(), and
nvme_pr_release() after variable declaration which follows the rest of
the code in the nvme/host/core.c.

No functional change(s) in this patch.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Stable-dep-of: f9309ca29e85 ("nvme: Fix IOC_PR_CLEAR and IOC_PR_RELEASE ioctls for nvme devices")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c

index d2ea6ca37c41f68a86f48699d65d708a8f989aac..c80ce7c1b6a8b263fe63a0e1044e7529d97cb6c9 100644 (file)
@@ -2018,18 +2018,21 @@ static int nvme_pr_preempt(struct block_device *bdev, u64 old, u64 new,
                enum pr_type type, bool abort)
 {
        u32 cdw10 = nvme_pr_type(type) << 8 | (abort ? 2 : 1);
+
        return nvme_pr_command(bdev, cdw10, old, new, nvme_cmd_resv_acquire);
 }
 
 static int nvme_pr_clear(struct block_device *bdev, u64 key)
 {
        u32 cdw10 = 1 | (key ? 1 << 3 : 0);
+
        return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_register);
 }
 
 static int nvme_pr_release(struct block_device *bdev, u64 key, enum pr_type type)
 {
        u32 cdw10 = nvme_pr_type(type) << 8 | (key ? 1 << 3 : 0);
+
        return nvme_pr_command(bdev, cdw10, key, 0, nvme_cmd_resv_release);
 }