staging: ath6kl: Cast variable to size_t to avoid compile warning
The min() macro does strict type-checking so use min_t() instead to silence a compile warning. Cc: Naveen Singh <naveen.singh@atheros.com> Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e49c459c33
commit
7702c36072
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ int PSSendOps(void *arg)
|
|||
status = 1;
|
||||
goto complete;
|
||||
}
|
||||
len = min(firmware->size, MAX_BDADDR_FORMAT_LENGTH - 1);
|
||||
len = min_t(size_t, firmware->size, MAX_BDADDR_FORMAT_LENGTH - 1);
|
||||
memcpy(config_bdaddr, firmware->data, len);
|
||||
config_bdaddr[len] = '\0';
|
||||
write_bdaddr(hdev,config_bdaddr,BDADDR_TYPE_STRING);
|
||||
|
|
Reference in a new issue