From 888446efb0d2d4b5d1db5e22b975763c2d9fe229 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 4 Oct 2006 15:41:25 +0000 Subject: [PATCH] fix empty if --- sys/dev/i2o/dpti.c | 7 ++++--- sys/dev/ic/dpt.c | 10 ++++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/sys/dev/i2o/dpti.c b/sys/dev/i2o/dpti.c index 691da1d7f3dd..609c4aaf1f45 100644 --- a/sys/dev/i2o/dpti.c +++ b/sys/dev/i2o/dpti.c @@ -1,4 +1,4 @@ -/* $NetBSD: dpti.c,v 1.26 2006/08/30 00:41:46 christos Exp $ */ +/* $NetBSD: dpti.c,v 1.27 2006/10/04 15:42:12 christos Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.26 2006/08/30 00:41:46 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.27 2006/10/04 15:42:12 christos Exp $"); #include "opt_i2o.h" @@ -713,9 +713,10 @@ dpti_passthrough(struct dpti_softc *sc, caddr_t data, struct proc *proc) /* * Copy out the reply frame. */ - if ((rv = copyout(rbtmp, data + msgsize, repsize)) != 0) + if ((rv = copyout(rbtmp, data + msgsize, repsize)) != 0) { DPRINTF(("%s: reply copyout() failed\n", sc->sc_dv.dv_xname)); + } bad: /* diff --git a/sys/dev/ic/dpt.c b/sys/dev/ic/dpt.c index 9c842ae3f1b4..029a4f6c3648 100644 --- a/sys/dev/ic/dpt.c +++ b/sys/dev/ic/dpt.c @@ -1,4 +1,4 @@ -/* $NetBSD: dpt.c,v 1.50 2006/08/30 00:40:56 christos Exp $ */ +/* $NetBSD: dpt.c,v 1.51 2006/10/04 15:41:25 christos Exp $ */ /*- * Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc. @@ -78,7 +78,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.50 2006/08/30 00:40:56 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.51 2006/10/04 15:41:25 christos Exp $"); #include #include @@ -1371,16 +1371,18 @@ dpt_passthrough(struct dpt_softc *sc, struct eata_ucp *ucp, struct lwp *l) if (ucp->ucp_stataddr != NULL) { rv = copyout(&sp, ucp->ucp_stataddr, sizeof(sp)); - if (rv != 0) + if (rv != 0) { DPRINTF(("%s: sp copyout() failed\n", sc->sc_dv.dv_xname)); + } } if (rv == 0 && ucp->ucp_senseaddr != NULL) { i = min(uslen, sizeof(ccb->ccb_sense)); rv = copyout(&ccb->ccb_sense, ucp->ucp_senseaddr, i); - if (rv != 0) + if (rv != 0) { DPRINTF(("%s: sense copyout() failed\n", sc->sc_dv.dv_xname)); + } } ucp->ucp_hstatus = (u_int8_t)ccb->ccb_hba_status;