mirror of
https://github.com/albfan/miraclecast.git
synced 2025-02-14 21:41:56 +00:00
Allow to set friendly name even if unmanaged
This commit is contained in:
parent
92a8b0b2c6
commit
3b3531de5c
2 changed files with 0 additions and 8 deletions
|
@ -214,11 +214,6 @@ static int cmd_set_friendly_name(char **args, unsigned int n)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (!l->managed) {
|
||||
cli_printf("link %s not managed\n", l->label);
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ctl_link_set_friendly_name(l, name);
|
||||
}
|
||||
|
||||
|
|
|
@ -227,9 +227,6 @@ int link_set_friendly_name(struct link *l, const char *name)
|
|||
if (!l || !name || !*name)
|
||||
return log_EINVAL();
|
||||
|
||||
if (!l->managed)
|
||||
return log_EUNMANAGED();
|
||||
|
||||
t = strdup(name);
|
||||
if (!t)
|
||||
return log_ENOMEM();
|
||||
|
|
Loading…
Reference in a new issue