Removed unnecessary access to /proc/u2mfn.

This commit is contained in:
Alexander Tereshkin 2012-05-12 18:22:16 +04:00
parent db82cf6851
commit 85f926efaa

View File

@ -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;