Module Name: src Committed By: jym Date: Thu May 26 22:16:42 UTC 2011
Modified Files: src/sys/arch/xen/xen: xbdback_xenbus.c Log Message: Reuse the pointer to the request operation, as set above. To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/arch/xen/xen/xbdback_xenbus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/xen/xen/xbdback_xenbus.c diff -u src/sys/arch/xen/xen/xbdback_xenbus.c:1.37 src/sys/arch/xen/xen/xbdback_xenbus.c:1.38 --- src/sys/arch/xen/xen/xbdback_xenbus.c:1.37 Sat May 21 15:22:49 2011 +++ src/sys/arch/xen/xen/xbdback_xenbus.c Thu May 26 22:16:42 2011 @@ -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;