From e49b2a758e03e2e237eb4ca367e25b9e0859f454 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 5 Sep 2009 10:24:59 +0000 Subject: Remove unnecessary assignments in sii311[24]_chip_map(). --- sys/dev/pci/pciide.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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); -- cgit v1.2.3