arm freescale: Remove unused variables.

This commit is contained in:
John Baldwin 2022-04-13 16:08:22 -07:00
parent 9ad5422f27
commit 43629a8b18
4 changed files with 1 additions and 13 deletions

View File

@ -75,9 +75,6 @@ usbphy_detach(device_t dev)
static int
usbphy_attach(device_t dev)
{
struct usbphy_softc *sc;
sc = device_get_softc(dev);
/*
* Turn on the phy clocks.

View File

@ -142,9 +142,6 @@ adc_probe(device_t dev)
static void
adc_intr(void *arg)
{
struct adc_softc *sc;
sc = arg;
/* Conversation complete */
}

View File

@ -74,13 +74,10 @@ static struct resource_spec tcon_spec[] = {
uint32_t
tcon_bypass(void)
{
struct tcon_softc *sc;
if (tcon_sc == NULL)
return (1);
sc = tcon_sc;
WRITE4(tcon_sc, TCON0_CTRL1, TCON_BYPASS);
return (0);

View File

@ -339,10 +339,8 @@ vf_uart_bus_getsig(struct uart_softc *sc)
static int
vf_uart_bus_ioctl(struct uart_softc *sc, int request, intptr_t data)
{
struct uart_bas *bas;
int error;
bas = &sc->sc_bas;
error = 0;
uart_lock(sc->sc_hwmtx);
switch (request) {
@ -369,7 +367,6 @@ vf_uart_bus_ipend(struct uart_softc *sc)
int ipend;
uint32_t usr1, usr2;
int reg;
int sfifo;
bas = &sc->sc_bas;
ipend = 0;
@ -378,7 +375,7 @@ vf_uart_bus_ipend(struct uart_softc *sc)
usr1 = uart_getreg(bas, UART_S1);
usr2 = uart_getreg(bas, UART_S2);
sfifo = uart_getreg(bas, UART_SFIFO);
(void)uart_getreg(bas, UART_SFIFO);
/* ack usr2 */
uart_setreg(bas, UART_S2, usr2);