diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2015-11-25 18:07:39 (GMT) |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2016-01-04 17:21:07 (GMT) |
commit | bde21f73b9be146fda0c689f2724cda9d7737565 (patch) | |
tree | 52389d7c3db2502a2dd86a330977a0c60158f6a4 /drivers/block/xen-blkback | |
parent | d4bf0065b7251afb723a29b2fd58f7c38f8ce297 (diff) | |
download | linux-bde21f73b9be146fda0c689f2724cda9d7737565.tar.xz |
xen/blocks: Return -EXX instead of -1
Lets return sensible values instead of -1.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block/xen-blkback')
-rw-r--r-- | drivers/block/xen-blkback/xenbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkback/xenbus.c b/drivers/block/xen-blkback/xenbus.c index 2b8650a9..ca3a414 100644 --- a/drivers/block/xen-blkback/xenbus.c +++ b/drivers/block/xen-blkback/xenbus.c @@ -996,7 +996,7 @@ static int connect_ring(struct backend_info *be) be->blkif->blk_protocol = BLKIF_PROTOCOL_X86_64; else { xenbus_dev_fatal(dev, err, "unknown fe protocol %s", protocol); - return -1; + return -ENOSYS; } err = xenbus_gather(XBT_NIL, dev->otherend, "feature-persistent", "%u", |