summaryrefslogtreecommitdiff
path: root/sys/dev/ic/mfi.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-07-13 14:25:42 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-07-13 14:25:42 +0000
commit4aa411c38c3f3878e03ec89da9e8a636ab44fde3 (patch)
treea33eefc39421296d79b488857af8bd37baef374b /sys/dev/ic/mfi.c
parent12d1de709c4952fd510cd76291aa62812d30e887 (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/ic/mfi.c')
-rw-r--r--sys/dev/ic/mfi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/mfi.c b/sys/dev/ic/mfi.c
index 9e553a3c8fe..96b0a055675 100644
--- a/sys/dev/ic/mfi.c
+++ b/sys/dev/ic/mfi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfi.c,v 1.180 2020/07/13 13:43:31 krw Exp $ */
+/* $OpenBSD: mfi.c,v 1.181 2020/07/13 14:25:41 krw Exp $ */
/*
* Copyright (c) 2006 Marco Peereboom <marco@peereboom.us>
*
@@ -1416,7 +1416,7 @@ mfi_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;
}