From: Stefano Stabellini Date: Tue, 12 Aug 2014 09:05:22 +0000 (+0100) Subject: xen_hvc: no reason to write the type key on xenstore X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=fb498df0787db0fb10a4a2cf91d0d3da13cc18f7;p=deliverable%2Flinux.git xen_hvc: no reason to write the type key on xenstore 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 2dc2831840ca..2967f0388d2c 100644 --- a/drivers/tty/hvc/hvc_xen.c +++ b/drivers/tty/hvc/hvc_xen.c @@ -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);