sys/dev/disk/dm: Remove #if0'd dmminphys() from NetBSD
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Wed, 21 Sep 2016 02:36:51 +0000 (11:36 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Sat, 1 Oct 2016 21:53:07 +0000 (06:53 +0900)
This is specific to NetBSD, so we can remove this.

sys/dev/disk/dm/device-mapper.c

index 5c2d1c8..2b2c219 100644 (file)
@@ -62,9 +62,6 @@ static void dm_doinit(void);
 static int dm_cmd_to_fun(prop_dictionary_t);
 static int disk_ioctl_switch(cdev_t, u_long, void *);
 static int dm_ioctl_switch(u_long);
-#if 0
-static void dmminphys(struct buf *);
-#endif
 
 static struct dev_ops dmctl_ops = {
        { "dm", 0, D_MPSAFE },
@@ -588,15 +585,6 @@ dmsize(struct dev_psize_args *ap)
        return 0;
 }
 
-#if 0
-static void
-dmminphys(struct buf *bp)
-{
-
-       bp->b_bcount = MIN(bp->b_bcount, MAXPHYS);
-}
-#endif
-
 void
 dmsetdiskinfo(struct disk *disk, dm_table_head_t *head)
 {