Commit fd58015c authored by Chengguang Xu's avatar Chengguang Xu Committed by Max Filippov
Browse files

xtensa: set proper error code for simdisk_setup()



Change error code to -ENOMEM from -EIO because
the error is related to memory allocating.

Signed-off-by: default avatarChengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-2-git-send-email-cgxu519@gmail.com>
Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent fb1b79d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ out_alloc_disk:
	blk_cleanup_queue(dev->queue);
	dev->queue = NULL;
out_alloc_queue:
	return -EIO;
	return -ENOMEM;
}

static int __init simdisk_init(void)