From 85f926efaa62d8a1db41d0f05897fd9230bc83a9 Mon Sep 17 00:00:00 2001 From: Alexander Tereshkin Date: Sat, 12 May 2012 18:22:16 +0400 Subject: [PATCH] Removed unnecessary access to /proc/u2mfn. --- vchan/init.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/vchan/init.c b/vchan/init.c index a8192bf9..90e1e21a 100644 --- a/vchan/init.c +++ b/vchan/init.c @@ -52,7 +52,6 @@ static int ring_init(struct libvchan *ctrl) mfn = virtual_to_mfn(ring); #else - int u2mfn = open("/proc/u2mfn", O_RDONLY); ring = (struct vchan_interface *) u2mfn_alloc_kpage (); if (ring == MAP_FAILED) @@ -60,7 +59,6 @@ static int ring_init(struct libvchan *ctrl) if (u2mfn_get_last_mfn (&mfn) < 0) return -1; - close(u2mfn); #endif ctrl->ring = ring;