mv_rtc_attach: eliminate write only unit variable

Sponsored by:		Netflix
This commit is contained in:
Warner Losh
2022-04-04 17:55:30 -06:00
parent feb08ab0cf
commit b20f0f7247
+1 -3
View File
@@ -208,9 +208,7 @@ static int
mv_rtc_attach(device_t dev) mv_rtc_attach(device_t dev)
{ {
struct mv_rtc_softc *sc; struct mv_rtc_softc *sc;
int unit, ret; int ret;
unit = device_get_unit(dev);
sc = device_get_softc(dev); sc = device_get_softc(dev);
sc->dev = dev; sc->dev = dev;