zvol: remove unused variable

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12917
This commit is contained in:
наб 2021-12-27 19:33:16 +01:00 committed by Brian Behlendorf
parent 43dbf88178
commit 7c41df4c77
1 changed files with 1 additions and 2 deletions

View File

@ -1035,7 +1035,7 @@ zvol_cdev_ioctl(struct cdev *dev, ulong_t cmd, caddr_t data,
zvol_state_t *zv;
zfs_locked_range_t *lr;
off_t offset, length;
int i, error;
int error;
boolean_t sync;
zv = dev->si_drv2;
@ -1044,7 +1044,6 @@ zvol_cdev_ioctl(struct cdev *dev, ulong_t cmd, caddr_t data,
KASSERT(zv->zv_open_count > 0,
("Device with zero access count in %s", __func__));
i = IOCPARM_LEN(cmd);
switch (cmd) {
case DIOCGSECTORSIZE:
*(uint32_t *)data = DEV_BSIZE;