Author: mav
Date: Tue Aug 13 19:29:33 2019
New Revision: 350999
URL: https://svnweb.freebsd.org/changeset/base/350999

Log:
  MFC r350961: Missed part of r350523.

Modified:
  stable/11/sys/dev/nvd/nvd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/nvd/nvd.c
==============================================================================
--- stable/11/sys/dev/nvd/nvd.c Tue Aug 13 19:27:23 2019        (r350998)
+++ stable/11/sys/dev/nvd/nvd.c Tue Aug 13 19:29:33 2019        (r350999)
@@ -275,17 +275,12 @@ nvd_gonecb(struct disk *dp)
 }
 
 static int
-nvd_ioctl(struct disk *ndisk, u_long cmd, void *data, int fflag,
+nvd_ioctl(struct disk *dp, u_long cmd, void *data, int fflag,
     struct thread *td)
 {
-       int ret = 0;
+       struct nvd_disk         *ndisk = dp->d_drv1;
 
-       switch (cmd) {
-       default:
-               ret = EIO;
-       }
-
-       return (ret);
+       return (nvme_ns_ioctl_process(ndisk->ns, cmd, data, fflag, td));
 }
 
 static int
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to