diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-09-05 10:24:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-09-05 10:24:59 +0000 |
commit | e49b2a758e03e2e237eb4ca367e25b9e0859f454 (patch) | |
tree | 5390e1ac055a989681c6d89b1cd38c9bd7a3c4a6 /sys/dev | |
parent | f1e53d13c39ec21b052f380f764e1d8930710345 (diff) |
Remove unnecessary assignments in sii311[24]_chip_map().
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pciide.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index cae8494f934..e12340f3a4e 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.297 2009/08/02 09:48:53 sthen Exp $ */ +/* $OpenBSD: pciide.c,v 1.298 2009/09/05 10:24:58 miod Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -3858,7 +3858,7 @@ sii3112_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa) bus_size_t cmdsize, ctlsize; pcireg_t interface, scs_cmd, cfgctl; int channel; - struct pciide_satalink *sl = sc->sc_cookie; + struct pciide_satalink *sl; /* Allocate memory for private data */ sc->sc_cookie = malloc(sizeof(*sl), M_DEVBUF, M_NOWAIT | M_ZERO); @@ -4134,7 +4134,7 @@ sii3114_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa) pci_intr_handle_t intrhandle; const char *intrstr; int channel; - struct pciide_satalink *sl = sc->sc_cookie; + struct pciide_satalink *sl; /* Allocate memory for private data */ sc->sc_cookie = malloc(sizeof(*sl), M_DEVBUF, M_NOWAIT | M_ZERO); |