ata: Retire unused variable / externs

When looking for something else, I noticed these are no longer used
anywhere.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-11-24 11:27:38 -07:00
parent 21795c374a
commit e0e5081538
2 changed files with 1 additions and 6 deletions

View file

@ -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));

View file

@ -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 */