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 2dc2831840ca1852efb1cec280ced8b2e0afb0ae..2967f0388d2c0153a09471a9b5e059ed033d66f9 100644 (file)
@@ -400,9 +400,6 @@ static int xencons_connect_backend(struct xenbus_device *dev,
                goto error_xenbus;
        ret = xenbus_printf(xbt, dev->nodename, "port", "%u",
                            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);