Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
        short found = 1;
        struct hpi_control_cache_info *pI;
        struct hpi_control_cache_single *pC;
-       u16 response_size;
+       size_t response_size;
        if (!find_control(phm->obj_index, p_cache, &pI)) {
                HPI_DEBUG_LOG(VERBOSE,
                        "HPICMN find_control() failed for adap %d\n",
                pI->control_index, pI->control_type, phm->u.c.attribute);
 
        if (found)
-               phr->size = response_size;
+               phr->size = (u16)response_size;
 
        return found;
 }