diff options
author | krw <krw@openbsd.org> | 2020-07-12 11:28:55 +0000 |
---|---|---|
committer | krw <krw@openbsd.org> | 2020-07-12 11:28:55 +0000 |
commit | 1721822955a207bb1ab17f8b2422fc380ebfc885 (patch) | |
tree | a597ef6a5ef80e6ca23e8d715d2d183da84d820c | |
parent | add kstat support for reading hardware counters. (diff) | |
download | wireguard-openbsd-1721822955a207bb1ab17f8b2422fc380ebfc885.tar.xz wireguard-openbsd-1721822955a207bb1ab17f8b2422fc380ebfc885.zip |
Eliminate pointless 'child' variable and just cast the config_found() result to
struct scsibus_soft * like everybody else.
-rw-r--r-- | sys/dev/pci/arc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c index 735d1ca414a..10bc20da0f9 100644 --- a/sys/dev/pci/arc.c +++ b/sys/dev/pci/arc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc.c,v 1.113 2020/06/27 17:28:58 krw Exp $ */ +/* $OpenBSD: arc.c,v 1.114 2020/07/12 11:28:55 krw Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -771,7 +771,6 @@ arc_attach(struct device *parent, struct device *self, void *aux) struct arc_softc *sc = (struct arc_softc *)self; struct pci_attach_args *pa = aux; struct scsibus_attach_args saa; - struct device *child; sc->sc_talking = 0; rw_init(&sc->sc_lock, "arcmsg"); @@ -811,8 +810,8 @@ arc_attach(struct device *parent, struct device *self, void *aux) saa.saa_sc_link = &sc->sc_link; - child = config_found(self, &saa, scsiprint); - sc->sc_scsibus = (struct scsibus_softc *)child; + sc->sc_scsibus = (struct scsibus_softc *)config_found(self, &saa, + scsiprint); /* enable interrupts */ arc_enable_all_intr(sc); |