aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/xen/xenbus/xenbus_dev_backend.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_backend.c b/drivers/xen/xenbus/xenbus_dev_backend.c
index d73000800762..120ae159fdad 100644
--- a/drivers/xen/xenbus/xenbus_dev_backend.c
+++ b/drivers/xen/xenbus/xenbus_dev_backend.c
@@ -76,16 +76,14 @@ static long xenbus_backend_ioctl(struct file *file, unsigned int cmd, unsigned l
76 return -EPERM; 76 return -EPERM;
77 77
78 switch (cmd) { 78 switch (cmd) {
79 case IOCTL_XENBUS_BACKEND_EVTCHN: 79 case IOCTL_XENBUS_BACKEND_EVTCHN:
80 if (xen_store_evtchn > 0) 80 if (xen_store_evtchn > 0)
81 return xen_store_evtchn; 81 return xen_store_evtchn;
82 return -ENODEV; 82 return -ENODEV;
83 83 case IOCTL_XENBUS_BACKEND_SETUP:
84 case IOCTL_XENBUS_BACKEND_SETUP: 84 return xenbus_alloc(data);
85 return xenbus_alloc(data); 85 default:
86 86 return -ENOTTY;
87 default:
88 return -ENOTTY;
89 } 87 }
90} 88}
91 89