summaryrefslogtreecommitdiff
path: root/sys/scsi/mpath_sym.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-06-30 18:43:38 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-06-30 18:43:38 +0000
commitda2bf588cc79557a2727bd2bb101c2db4862d39c (patch)
tree8a1427333e995d6dfca77d233bffa9ac941ff180 /sys/scsi/mpath_sym.c
parenta7626b42c189c2b699b550092b7b6e4a48581367 (diff)
Nuke unneeded 'sa_inqbuf' member of struct scsi_attach_args. It always
points to the inquiry data contained in the struct scsi_link pointed to by the other member, sa_sc_link.
Diffstat (limited to 'sys/scsi/mpath_sym.c')
-rw-r--r--sys/scsi/mpath_sym.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/mpath_sym.c b/sys/scsi/mpath_sym.c
index f6ebec14748..11f5e224513 100644
--- a/sys/scsi/mpath_sym.c
+++ b/sys/scsi/mpath_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpath_sym.c,v 1.24 2019/08/17 15:31:41 krw Exp $ */
+/* $OpenBSD: mpath_sym.c,v 1.25 2020/06/30 18:43:37 krw Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -104,7 +104,7 @@ int
sym_match(struct device *parent, void *match, void *aux)
{
struct scsi_attach_args *sa = aux;
- struct scsi_inquiry_data *inq = sa->sa_inqbuf;
+ struct scsi_inquiry_data *inq = &sa->sa_sc_link->inqdata;
struct sym_device *s;
int i;
@@ -135,7 +135,7 @@ sym_attach(struct device *parent, struct device *self, void *aux)
struct sym_softc *sc = (struct sym_softc *)self;
struct scsi_attach_args *sa = aux;
struct scsi_link *link = sa->sa_sc_link;
- struct scsi_inquiry_data *inq = sa->sa_inqbuf;
+ struct scsi_inquiry_data *inq = &link->inqdata;
const struct mpath_ops *ops = &sym_mpath_sym_ops;
struct sym_device *s;
u_int id = 0;