summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-09-17 10:11:34 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-09-17 10:11:34 +0000
commit0510abbe9610a3ed0ff17f4939f66bad0983032a (patch)
tree2696e60a24094f70623719a001fe6fd1276b02ff /sys/dev/ic
parent3ad5f9fa447ee0e7f70bc3b98c5104f71ea08349 (diff)
be less confusing to the compiler when setting up the sge.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/mpi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/mpi.c b/sys/dev/ic/mpi.c
index e7dcdb7fe34..196192b4e97 100644
--- a/sys/dev/ic/mpi.c
+++ b/sys/dev/ic/mpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpi.c,v 1.197 2014/09/15 12:00:04 dlg Exp $ */
+/* $OpenBSD: mpi.c,v 1.198 2014/09/17 10:11:33 dlg Exp $ */
/*
* Copyright (c) 2005, 2006, 2009 David Gwynne <dlg@openbsd.org>
@@ -1527,7 +1527,8 @@ mpi_load_xs(struct mpi_ccb *ccb)
struct scsi_xfer *xs = ccb->ccb_cookie;
struct mpi_ccb_bundle *mcb = ccb->ccb_cmd;
struct mpi_msg_scsi_io *io = &mcb->mcb_io;
- struct mpi_sge *sge, *nsge = &mcb->mcb_sgl[0];
+ struct mpi_sge *sge = NULL;
+ struct mpi_sge *nsge = &mcb->mcb_sgl[0];
struct mpi_sge *ce = NULL, *nce;
bus_dmamap_t dmap = ccb->ccb_dmamap;
u_int32_t addr, flags;