]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/nvme/host/core.c
nvme: remove the ifdef around nvme_nvm_ioctl
[thirdparty/kernel/stable.git] / drivers / nvme / host / core.c
index e29c395f44d2cd710c7d31fa1e3f1165f0b62cb2..decc0b3a3854e7d5facc17245d13ab646a473f10 100644 (file)
@@ -1396,10 +1396,8 @@ static int nvme_ns_ioctl(struct nvme_ns *ns, unsigned cmd, unsigned long arg)
        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);