diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-12-03 15:58:29 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2019-12-03 15:58:29 +0000 |
commit | 38937626ea24db7a3c881dd76523581779f13706 (patch) | |
tree | 7d159897ebd938321f3b11ed04637cdc04ba0433 /sys/scsi/scsi_disk.h | |
parent | 0f502f8d4b74cc43c8334beaf9b91660d54db987 (diff) |
Check for expected mode sense page code as well as expected mode page length when
constructing the pointer to the page data. Remove now unneeded DISK_PGCODE().
Usual misc whitespace/modernization tweaks to functions being modified.
Diffstat (limited to 'sys/scsi/scsi_disk.h')
-rw-r--r-- | sys/scsi/scsi_disk.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/scsi/scsi_disk.h b/sys/scsi/scsi_disk.h index 0f56fdd62d8..0fdfec2c5d9 100644 --- a/sys/scsi/scsi_disk.h +++ b/sys/scsi/scsi_disk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_disk.h,v 1.39 2019/11/25 17:02:57 krw Exp $ */ +/* $OpenBSD: scsi_disk.h,v 1.40 2019/12/03 15:58:28 krw Exp $ */ /* $NetBSD: scsi_disk.h,v 1.10 1996/07/05 16:19:05 christos Exp $ */ /* @@ -313,7 +313,6 @@ struct scsi_reassign_blocks_data { }; /* Only the lower 6 bits of the pg_code field are used for page #. */ -#define DISK_PGCODE(pg, n) ((pg) != NULL) && (((pg)->pg_code & 0x3f) == n) #define PAGE_DISK_FORMAT 3 #define PAGE_RIGID_GEOMETRY 4 #define PAGE_FLEX_GEOMETRY 5 |