Commit 3d0591ee authored by Eliot Blennerhassett's avatar Eliot Blennerhassett Committed by Takashi Iwai

ALSA: asihpi - Use size_t for sizeof result

Signed-off-by: default avatarEliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 5ddc5bef
...@@ -315,7 +315,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, ...@@ -315,7 +315,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache,
short found = 1; short found = 1;
struct hpi_control_cache_info *pI; struct hpi_control_cache_info *pI;
struct hpi_control_cache_single *pC; struct hpi_control_cache_single *pC;
u16 response_size; size_t response_size;
if (!find_control(phm->obj_index, p_cache, &pI)) { if (!find_control(phm->obj_index, p_cache, &pI)) {
HPI_DEBUG_LOG(VERBOSE, HPI_DEBUG_LOG(VERBOSE,
"HPICMN find_control() failed for adap %d\n", "HPICMN find_control() failed for adap %d\n",
...@@ -532,7 +532,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, ...@@ -532,7 +532,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache,
pI->control_index, pI->control_type, phm->u.c.attribute); pI->control_index, pI->control_type, phm->u.c.attribute);
if (found) if (found)
phr->size = response_size; phr->size = (u16)response_size;
return found; return found;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment