git: e0e508153866 - main - ata: Retire unused variable / externs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Nov 2023 18:32:41 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=e0e508153866947115d1f855a31d83cdaf49aa68 commit e0e508153866947115d1f855a31d83cdaf49aa68 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2023-11-24 18:27:38 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2023-11-24 18:27:38 +0000 ata: Retire unused variable / externs When looking for something else, I noticed these are no longer used anywhere. Sponsored by: Netflix --- sys/dev/ata/ata-all.c | 3 +-- sys/dev/ata/ata-all.h | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index dae833bbd849..c12043c9915d 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -71,7 +71,6 @@ static int ata_str2mode(const char *str); /* global vars */ MALLOC_DEFINE(M_ATA, "ata_generic", "ATA driver generic layer"); -int (*ata_raid_ioctl_func)(u_long cmd, caddr_t data) = NULL; devclass_t ata_devclass; int ata_dma_check_80pin = 1; @@ -428,7 +427,7 @@ void ata_udelay(int interval) { /* for now just use DELAY, the timer/sleep subsystems are not there yet */ - if (1 || interval < (1000000/hz) || ata_delayed_attach) + if (1 || interval < (1000000/hz)) DELAY(interval); else pause("ataslp", interval/(1000000/hz)); diff --git a/sys/dev/ata/ata-all.h b/sys/dev/ata/ata-all.h index 41faa271abda..056a391cb621 100644 --- a/sys/dev/ata/ata-all.h +++ b/sys/dev/ata/ata-all.h @@ -450,11 +450,7 @@ struct ata_channel { #define ATA_LED_MASK 0x03 /* externs */ -extern int (*ata_raid_ioctl_func)(u_long cmd, caddr_t data); -extern struct intr_config_hook *ata_delayed_attach; extern devclass_t ata_devclass; -extern int ata_wc; -extern int ata_setmax; extern int ata_dma_check_80pin; /* public prototypes */