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 Reuse the pointer to the request operation, ...



details:   https://anonhg.NetBSD.org/src/rev/d9d7ffc73faf
branches:  trunk
changeset: 765436:d9d7ffc73faf
user:      jym <jym%NetBSD.org@localhost>
date:      Thu May 26 22:16:42 2011 +0000

description:
Reuse the pointer to the request operation, as set above.

diffstat:

 sys/arch/xen/xen/xbdback_xenbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4e40a3b39012 -r d9d7ffc73faf sys/arch/xen/xen/xbdback_xenbus.c
--- a/sys/arch/xen/xen/xbdback_xenbus.c Thu May 26 21:56:44 2011 +0000
+++ b/sys/arch/xen/xen/xbdback_xenbus.c Thu May 26 22:16:42 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbdback_xenbus.c,v 1.37 2011/05/21 15:22:49 jym Exp $      */
+/*      $NetBSD: xbdback_xenbus.c,v 1.38 2011/05/26 22:16:42 jym Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.37 2011/05/21 15:22:49 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.38 2011/05/26 22:16:42 jym Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1031,7 +1031,7 @@
                goto end;
        }
 
-       if (xbdi->xbdi_xen_req.operation == BLKIF_OP_WRITE) {
+       if (req->operation == BLKIF_OP_WRITE) {
                if (xbdi->xbdi_ro) {
                        error = EROFS;
                        goto end;



Home | Main Index | Thread Index | Old Index