diff options
| author | mrg <mrg@NetBSD.org> | 2018-02-05 22:14:26 +0000 |
|---|---|---|
| committer | mrg <mrg@NetBSD.org> | 2018-02-05 22:14:26 +0000 |
| commit | 0a4c7ada9fc3c044c5aa67a7a99ea7eedde75337 (patch) | |
| tree | 0f5ad09b668ecd0f993869bc310600b0bf601117 /sys/dev/ic | |
| parent | 752198ecbe26d57f6ee26c3fcf520207a5704e00 (diff) | |
fixes for GCC 6.4:
- fix an indentation issue in radioioctl().
- fix an indentation issue in mpt_run_xfer().
- grep's printline() has some {} placement issues.
Diffstat (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/mpt_netbsd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/mpt_netbsd.c b/sys/dev/ic/mpt_netbsd.c index e6f9c09a594..fa9bba74c9f 100644 --- a/sys/dev/ic/mpt_netbsd.c +++ b/sys/dev/ic/mpt_netbsd.c @@ -1,4 +1,4 @@ -/* $NetBSD: mpt_netbsd.c,v 1.34 2018/01/30 20:20:38 jakllsch Exp $ */ +/* $NetBSD: mpt_netbsd.c,v 1.35 2018/02/05 22:14:26 mrg Exp $ */ /* * Copyright (c) 2003 Wasabi Systems, Inc. @@ -77,7 +77,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.34 2018/01/30 20:20:38 jakllsch Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mpt_netbsd.c,v 1.35 2018/02/05 22:14:26 mrg Exp $"); #include "bio.h" @@ -1093,11 +1093,11 @@ mpt_run_xfer(mpt_softc_t *mpt, struct scsipi_xfer *xs) if (mpt->verbose > 1) mpt_print_scsi_io_request(mpt_req); - if (xs->timeout == 0) { - mpt_prt(mpt, "mpt_run_xfer: no timeout specified for request: 0x%x\n", + if (xs->timeout == 0) { + mpt_prt(mpt, "mpt_run_xfer: no timeout specified for request: 0x%x\n", req->index); - xs->timeout = 500; - } + xs->timeout = 500; + } s = splbio(); if (__predict_true((xs->xs_control & XS_CTL_POLL) == 0)) |
