diff options
author | ed <ed@FreeBSD.org> | 2012-08-28 19:28:31 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-08-28 19:28:31 +0000 |
commit | 099a431e7fa16c57e47f80ce5b4b0bc73c99e3e3 (patch) | |
tree | 362b06dfc1018cf7268baf6b2840b1492e6cc95e /sys/geom/geom_dev.c | |
parent | 6e82ac32c7ef1558432883b4bcd104358ce52334 (diff) | |
download | FreeBSD-src-099a431e7fa16c57e47f80ce5b4b0bc73c99e3e3.zip FreeBSD-src-099a431e7fa16c57e47f80ce5b4b0bc73c99e3e3.tar.gz |
Remove unneeded G_PF_CANDELETE flag.
This flag is only used by GEOM so it can be propagated to the character
device's SI_CANDELETE. Unfortunately, SI_CANDELETE seems to do nothing.
Diffstat (limited to 'sys/geom/geom_dev.c')
-rw-r--r-- | sys/geom/geom_dev.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/geom/geom_dev.c b/sys/geom/geom_dev.c index 7936740..fcec134 100644 --- a/sys/geom/geom_dev.c +++ b/sys/geom/geom_dev.c @@ -208,15 +208,11 @@ g_dev_taste(struct g_class *mp, struct g_provider *pp, int insist __unused) } } - if (pp->flags & G_PF_CANDELETE) - dev->si_flags |= SI_CANDELETE; dev->si_iosize_max = MAXPHYS; gp->softc = dev; dev->si_drv1 = gp; dev->si_drv2 = cp; if (adev != NULL) { - if (pp->flags & G_PF_CANDELETE) - adev->si_flags |= SI_CANDELETE; adev->si_iosize_max = MAXPHYS; adev->si_drv1 = gp; adev->si_drv2 = cp; |