Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Nov 2022 21:41:51 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: c9ee39a3f255 - main - stand: Remove unused enum
Message-ID:  <202211042141.2A4LfpYJ031541@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=c9ee39a3f255b62cbf106f4e5a704bcefdef017b

commit c9ee39a3f255b62cbf106f4e5a704bcefdef017b
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-11-04 21:28:26 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-11-04 21:40:12 +0000

    stand: Remove unused enum
    
    enum disk_ioctl is unused.  It's only ever defined. All of the stand
    code uses DIOCGSECTORSIZE and DIOCGMEDIASIZE instead, both to query and
    to implement ioctl.
    
    Sponsored by:           Netflix
---
 stand/common/disk.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/stand/common/disk.h b/stand/common/disk.h
index 806673349cb8..291999ce960d 100644
--- a/stand/common/disk.h
+++ b/stand/common/disk.h
@@ -97,11 +97,6 @@ struct disk_devdesc {
 	uint64_t	d_offset;
 };
 
-enum disk_ioctl {
-	IOCTL_GET_BLOCKS,
-	IOCTL_GET_BLOCK_SIZE
-};
-
 /*
  * Parse disk metadata and initialise dev->d_offset.
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211042141.2A4LfpYJ031541>