summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2017-09-19 09:04:29 +0000
committeravg <avg@FreeBSD.org>2017-09-19 09:04:29 +0000
commit2b3f4078c8c515552684d90198bc2643ef3fd5e2 (patch)
tree037547003c367b1d653166877687983f190e6bd0
parent07f548a13f029bdc62304e7b089daaf02f14a101 (diff)
downloadFreeBSD-src-2b3f4078c8c515552684d90198bc2643ef3fd5e2.zip
FreeBSD-src-2b3f4078c8c515552684d90198bc2643ef3fd5e2.tar.gz
MFC r322234: zfs: no need for __DECONST after abd constification in r322233
Note that vdev_label_write_pad2() is FreeBSD specific.
-rw-r--r--sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
index 04bc90c..47b31ad 100644
--- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
+++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
@@ -899,7 +899,7 @@ vdev_label_write_pad2(vdev_t *vd, const char *buf, size_t size)
pad2 = abd_alloc_for_io(VDEV_PAD_SIZE, B_TRUE);
abd_zero(pad2, VDEV_PAD_SIZE);
- abd_copy_from_buf(pad2, __DECONST(void *, buf), size);
+ abd_copy_from_buf(pad2, buf, size);
retry:
zio = zio_root(spa, NULL, NULL, flags);
OpenPOWER on IntegriCloud