diff options
| author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2011-07-21 23:52:58 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2011-07-22 01:53:07 -0400 |
| commit | 3d0591eee46f1c7cdfd502c8366e5552b8cea3db (patch) | |
| tree | 4f87c7f4d3a7b1b9bcbc4b3ddfa8bcdfaf516b0d | |
| parent | 5ddc5bef5cfff111addb2b0b2967dda74a14cce4 (diff) | |
ALSA: asihpi - Use size_t for sizeof result
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/pci/asihpi/hpicmn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/asihpi/hpicmn.c b/sound/pci/asihpi/hpicmn.c index 808f18447fa9..65b7ca13115b 100644 --- a/sound/pci/asihpi/hpicmn.c +++ b/sound/pci/asihpi/hpicmn.c | |||
| @@ -315,7 +315,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, | |||
| 315 | short found = 1; | 315 | short found = 1; |
| 316 | struct hpi_control_cache_info *pI; | 316 | struct hpi_control_cache_info *pI; |
| 317 | struct hpi_control_cache_single *pC; | 317 | struct hpi_control_cache_single *pC; |
| 318 | u16 response_size; | 318 | size_t response_size; |
| 319 | if (!find_control(phm->obj_index, p_cache, &pI)) { | 319 | if (!find_control(phm->obj_index, p_cache, &pI)) { |
| 320 | HPI_DEBUG_LOG(VERBOSE, | 320 | HPI_DEBUG_LOG(VERBOSE, |
| 321 | "HPICMN find_control() failed for adap %d\n", | 321 | "HPICMN find_control() failed for adap %d\n", |
| @@ -532,7 +532,7 @@ short hpi_check_control_cache(struct hpi_control_cache *p_cache, | |||
| 532 | pI->control_index, pI->control_type, phm->u.c.attribute); | 532 | pI->control_index, pI->control_type, phm->u.c.attribute); |
| 533 | 533 | ||
| 534 | if (found) | 534 | if (found) |
| 535 | phr->size = response_size; | 535 | phr->size = (u16)response_size; |
| 536 | 536 | ||
| 537 | return found; | 537 | return found; |
| 538 | } | 538 | } |
