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:
Anas Nashif 2024-07-17 07:24:34 -04:00
commit 2a39132645

View file

@ -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;