xen_hvc: no reason to write the type key on xenstore
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Tue, 12 Aug 2014 09:05:22 +0000 (10:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:23:45 +0000 (21:23 -0400)
The backend type is chosen by the toolstack. Regardless, the frontend
should not care, especially given that it cannot have an effect as the
backend is started before this code is run.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_xen.c

index 2dc2831..2967f03 100644 (file)
@@ -402,9 +402,6 @@ static int xencons_connect_backend(struct xenbus_device *dev,
                            evtchn);
        if (ret)
                goto error_xenbus;
-       ret = xenbus_printf(xbt, dev->nodename, "type", "ioemu");
-       if (ret)
-               goto error_xenbus;
        ret = xenbus_transaction_end(xbt, 0);
        if (ret) {
                if (ret == -EAGAIN)