diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2009-10-29 17:19:42 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-01-05 16:30:37 -0500 |
commit | 7432e4bd0bcec9f18d9c94de8925b8a59d3edf94 (patch) | |
tree | 8506ae41ca15e8d21e2d78c115f89784a6282a4b /drivers/xen | |
parent | 1b31a143450ea9b5e6168f3b21a02c4a6a63ad01 (diff) |
xen/xenbus: clean up error handling
Don't report errors when booting on non-Xen, because its just confusing.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
[corresponds to 8aa08376d6aa in git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/xenbus/xenbus_probe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_probe.c b/drivers/xen/xenbus/xenbus_probe.c index b09eb17ba007..96bd1ef61ebe 100644 --- a/drivers/xen/xenbus/xenbus_probe.c +++ b/drivers/xen/xenbus/xenbus_probe.c | |||
@@ -242,7 +242,7 @@ int xenbus_dev_probe(struct device *_dev) | |||
242 | fail: | 242 | fail: |
243 | xenbus_dev_error(dev, err, "xenbus_dev_probe on %s", dev->nodename); | 243 | xenbus_dev_error(dev, err, "xenbus_dev_probe on %s", dev->nodename); |
244 | xenbus_switch_state(dev, XenbusStateClosed); | 244 | xenbus_switch_state(dev, XenbusStateClosed); |
245 | return -ENODEV; | 245 | return err; |
246 | } | 246 | } |
247 | EXPORT_SYMBOL_GPL(xenbus_dev_probe); | 247 | EXPORT_SYMBOL_GPL(xenbus_dev_probe); |
248 | 248 | ||
@@ -709,7 +709,7 @@ static int __init xenbus_init(void) | |||
709 | 709 | ||
710 | err = -ENODEV; | 710 | err = -ENODEV; |
711 | if (!xen_domain()) | 711 | if (!xen_domain()) |
712 | goto out_error; | 712 | return err; |
713 | 713 | ||
714 | /* | 714 | /* |
715 | * Domain0 doesn't have a store_evtchn or store_mfn yet. | 715 | * Domain0 doesn't have a store_evtchn or store_mfn yet. |