The patch titled uml ubd driver: reformat ubd_config has been removed from the -mm tree. Its filename was uml-ubd-driver-reformat-ubd_config.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: uml ubd driver: reformat ubd_config From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx> Pure whitespace and style fixes split out from subsequent patch. Some changes (err -> ret) don't make sense now, only later, but I split them out anyway since they cluttered the patch. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx> Cc: Jeff Dike <jdike@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- arch/um/drivers/ubd_kern.c | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff -puN arch/um/drivers/ubd_kern.c~uml-ubd-driver-reformat-ubd_config arch/um/drivers/ubd_kern.c --- a/arch/um/drivers/ubd_kern.c~uml-ubd-driver-reformat-ubd_config +++ a/arch/um/drivers/ubd_kern.c @@ -703,27 +703,36 @@ out: static int ubd_config(char *str) { - int n, err; + int n, ret; str = kstrdup(str, GFP_KERNEL); - if(str == NULL){ + if (str == NULL) { printk(KERN_ERR "ubd_config failed to strdup string\n"); - return(1); + ret = 1; + goto out; } - err = ubd_setup_common(str, &n); - if(err){ - kfree(str); - return(-1); + ret = ubd_setup_common(str, &n); + if (ret) { + ret = -1; + goto err_free; + } + if (n == -1) { + ret = 0; + goto out; } - if(n == -1) return(0); mutex_lock(&ubd_lock); - err = ubd_add(n); - if(err) + ret = ubd_add(n); + if (ret) ubd_devs[n].file = NULL; mutex_unlock(&ubd_lock); - return(err); +out: + return ret; + +err_free: + kfree(str); + goto out; } static int ubd_get_config(char *name, char *str, int size, char **error_out) _ Patches currently in -mm which might be from blaisorblade@xxxxxxxx are origin.patch make-x86_64-udelay-round-up-instead-of-down.patch i386-x86_64-comment-magic-constants-in-delayh.patch uml-fix-prototypes.patch uml-make-execvp-safe-for-our-usage.patch tty-switch-to-ktermios-uml-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html