aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/ubd_kern.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-06-28 11:39:37 +0200
committerJens Axboe <axboe@kernel.dk>2021-06-30 15:35:45 -0600
commitefee99e68e69d8a1966f3d426cc0cea73e32c6d7 (patch)
tree8af7696a0ec73f852ff9a2ddd4bdca8b404ba18e /arch/um/drivers/ubd_kern.c
parentnvme: use return value from blk_execute_rq() (diff)
downloadlinux-dev-efee99e68e69d8a1966f3d426cc0cea73e32c6d7.tar.xz
linux-dev-efee99e68e69d8a1966f3d426cc0cea73e32c6d7.zip
ubd: remove dead code in ubd_setup_common
Remove some leftovers of the fake major number parsing that cause complains from some compilers. Fixes: 2933a1b2c6f3 ("ubd: remove the code to register as the legacy IDE driver") Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210628093937.1325608-1-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/um/drivers/ubd_kern.c')
-rw-r--r--arch/um/drivers/ubd_kern.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c
index 0b86aa1b12f1..e3093071406d 100644
--- a/arch/um/drivers/ubd_kern.c
+++ b/arch/um/drivers/ubd_kern.c
@@ -243,22 +243,12 @@ static int ubd_setup_common(char *str, int *index_out, char **error_out)
if(index_out) *index_out = -1;
n = *str;
if(n == '='){
- char *end;
- int major;
-
str++;
if(!strcmp(str, "sync")){
global_openflags = of_sync(global_openflags);
return err;
}
- err = -EINVAL;
- major = simple_strtoul(str, &end, 0);
- if((*end != '\0') || (end == str)){
- *error_out = "Didn't parse major number";
- return err;
- }
-
pr_warn("fake major not supported any more\n");
return 0;
}