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: Chengguang Xu <cgxu519@gmail.com>
Message-Id: <1557066367-4783-2-git-send-email-cgxu519@gmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
Chengguang Xu 2019-05-05 22:26:07 +08:00 committed by Max Filippov
parent fb1b79d88b
commit fd58015ca9
1 changed files with 1 additions and 1 deletions

View File

@ -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)