diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-13 14:25:42 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-07-13 14:25:42 +0000 |
commit | 4aa411c38c3f3878e03ec89da9e8a636ab44fde3 (patch) | |
tree | a33eefc39421296d79b488857af8bd37baef374b /sys/dev/pci/mfii.c | |
parent | 12d1de709c4952fd510cd76291aa62812d30e887 (diff) |
Where we have a pointer (sc) to the relevant adapter_softc, use
&sc->sc_dev to get a device pointer rather than using the void *
whence we obtained 'sc'.
Diffstat (limited to 'sys/dev/pci/mfii.c')
-rw-r--r-- | sys/dev/pci/mfii.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 0198e77a4d9..4114fd034e0 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.75 2020/07/13 13:43:31 krw Exp $ */ +/* $OpenBSD: mfii.c,v 1.76 2020/07/13 14:25:41 krw Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -2180,7 +2180,7 @@ mfii_scsi_ioctl(struct scsi_link *link, u_long cmd, caddr_t addr, int flag) default: if (sc->sc_ioctl) - return (sc->sc_ioctl(link->adapter_softc, cmd, addr)); + return (sc->sc_ioctl(&sc->sc_dev, cmd, addr)); break; } |