mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 20:20:26 +03:00
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:
parent
43dbf88178
commit
7c41df4c77
@ -1035,7 +1035,7 @@ zvol_cdev_ioctl(struct cdev *dev, ulong_t cmd, caddr_t data,
|
|||||||
zvol_state_t *zv;
|
zvol_state_t *zv;
|
||||||
zfs_locked_range_t *lr;
|
zfs_locked_range_t *lr;
|
||||||
off_t offset, length;
|
off_t offset, length;
|
||||||
int i, error;
|
int error;
|
||||||
boolean_t sync;
|
boolean_t sync;
|
||||||
|
|
||||||
zv = dev->si_drv2;
|
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,
|
KASSERT(zv->zv_open_count > 0,
|
||||||
("Device with zero access count in %s", __func__));
|
("Device with zero access count in %s", __func__));
|
||||||
|
|
||||||
i = IOCPARM_LEN(cmd);
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
case DIOCGSECTORSIZE:
|
case DIOCGSECTORSIZE:
|
||||||
*(uint32_t *)data = DEV_BSIZE;
|
*(uint32_t *)data = DEV_BSIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user