Skip to content

Commit

Permalink
zvol: remove unused variable
Browse files Browse the repository at this point in the history
Reviewed-by: Matthew Ahrens <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Closes #12917
  • Loading branch information
nabijaczleweli authored and behlendorf committed Jan 6, 2022
1 parent 43dbf88 commit 7c41df4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions module/os/freebsd/zfs/zvol_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 7c41df4

Please sign in to comment.