Revert "um: line: always fill *error_out in setup_one_line()"

This reverts commit 02eb370a4c.
This commit is contained in:
Ksawlii 2024-11-24 00:23:40 +01:00
parent 10efc08feb
commit 40b2071803

View file

@ -378,7 +378,6 @@ int setup_one_line(struct line *lines, int n, char *init,
parse_chan_pair(NULL, line, n, opts, error_out);
err = 0;
}
*error_out = "configured as 'none'";
} else {
char *new = kstrdup(init, GFP_KERNEL);
if (!new) {
@ -402,7 +401,6 @@ int setup_one_line(struct line *lines, int n, char *init,
}
}
if (err) {
*error_out = "failed to parse channel pair";
line->init_str = NULL;
line->valid = 0;
kfree(new);