]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nvme: remove the ifdef around nvme_nvm_ioctl
authorChristoph Hellwig <hch@lst.de>
Fri, 17 May 2019 09:47:34 +0000 (02:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:20:57 +0000 (08:20 +0200)
[ Upstream commit 3f98bcc58cd5f1e4668db289dcab771874cc0920 ]

We already have a proper stub if lightnvm is not enabled, so don't bother
with the ifdef.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/nvme/host/core.c

index 65f3f1a34b6b59bd25694951c907758f6055d319..d98ffb1ce6295db300007f12807ca2562649701f 100644 (file)
@@ -1042,10 +1042,8 @@ static int nvme_ioctl(struct block_device *bdev, fmode_t mode,
        case NVME_IOCTL_SUBMIT_IO:
                return nvme_submit_io(ns, (void __user *)arg);
        default:
-#ifdef CONFIG_NVM
                if (ns->ndev)
                        return nvme_nvm_ioctl(ns, cmd, arg);
-#endif
                if (is_sed_ioctl(cmd))
                        return sed_ioctl(ns->ctrl->opal_dev, cmd,
                                         (void __user *) arg);