device: remove const qualifier from node label copy
k_usermode_string_copy does not accept const in its arguements. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
c5e6416a65
commit
2a39132645
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ const struct device *z_impl_device_get_by_dt_nodelabel(const char *nodelabel)
|
|||
#ifdef CONFIG_USERSPACE
|
||||
static inline const struct device *z_vrfy_device_get_by_dt_nodelabel(const char *nodelabel)
|
||||
{
|
||||
const char nl_copy[Z_DEVICE_MAX_NODELABEL_LEN];
|
||||
char nl_copy[Z_DEVICE_MAX_NODELABEL_LEN];
|
||||
|
||||
if (k_usermode_string_copy(nl_copy, (char *)nodelabel, sizeof(nl_copy)) != 0) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue