Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/xen/xen KNF. No functional change.
details: https://anonhg.NetBSD.org/src/rev/338bf7c32ef7
branches: trunk
changeset: 767619:338bf7c32ef7
user: jym <jym%NetBSD.org@localhost>
date: Mon Jul 25 00:02:38 2011 +0000
description:
KNF. No functional change.
diffstat:
sys/arch/xen/xen/xbd_xenbus.c | 25 +++++++++++--------------
1 files changed, 11 insertions(+), 14 deletions(-)
diffs (59 lines):
diff -r e81fdbaf557b -r 338bf7c32ef7 sys/arch/xen/xen/xbd_xenbus.c
--- a/sys/arch/xen/xen/xbd_xenbus.c Sun Jul 24 23:56:34 2011 +0000
+++ b/sys/arch/xen/xen/xbd_xenbus.c Mon Jul 25 00:02:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xbd_xenbus.c,v 1.45 2011/03/30 00:13:28 jym Exp $ */
+/* $NetBSD: xbd_xenbus.c,v 1.46 2011/07/25 00:02:38 jym Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.45 2011/03/30 00:13:28 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.46 2011/07/25 00:02:38 jym Exp $");
#include "opt_xen.h"
#include "rnd.h"
@@ -356,7 +356,6 @@
sc->sc_ring_gntref = GRANT_INVALID_REF;
-
/* setup device: alloc event channel and shared ring */
ring = (void *)uvm_km_alloc(kernel_map, PAGE_SIZE, 0,
UVM_KMF_ZERO | UVM_KMF_WIRED);
@@ -602,23 +601,21 @@
xbdreq->req_nr_segments = seg + 1;
goto done;
}
- xengnt_revoke_access(
- xbdreq->req_gntref[seg]);
+ xengnt_revoke_access(xbdreq->req_gntref[seg]);
xbdreq->req_nr_segments--;
}
if (rep->operation != BLKIF_OP_READ &&
rep->operation != BLKIF_OP_WRITE) {
- aprint_error_dev(sc->sc_dev,
- "bad operation %d from backend\n",
- rep->operation);
- bp->b_error = EIO;
- bp->b_resid = bp->b_bcount;
- goto next;
+ aprint_error_dev(sc->sc_dev,
+ "bad operation %d from backend\n", rep->operation);
+ bp->b_error = EIO;
+ bp->b_resid = bp->b_bcount;
+ goto next;
}
if (rep->status != BLKIF_RSP_OKAY) {
- bp->b_error = EIO;
- bp->b_resid = bp->b_bcount;
- goto next;
+ bp->b_error = EIO;
+ bp->b_resid = bp->b_bcount;
+ goto next;
}
/* b_resid was set in xbdstart */
next:
Home |
Main Index |
Thread Index |
Old Index