diff options
author | Eliot Blennerhassett <eblennerhassett@audioscience.com> | 2010-07-16 01:51:01 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-07-16 05:34:23 -0400 |
commit | e2768c0c223d86a20ec392528bafd25996ce7585 (patch) | |
tree | c600bb9f6e9f62cd55d3debc3a9a2d3061887868 /sound/pci/asihpi/hpifunc.c | |
parent | 604a440a9dd08d45570c555d78a17a4602c843d5 (diff) |
ALSA: asihpi - Avoid useless assignment of returned index values.
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi/hpifunc.c')
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 9c6958ab9284..1e92eb6dd509 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c | |||
@@ -2179,7 +2179,7 @@ u16 hpi_compander_get_attack_time_constant(const struct hpi_hsubsys | |||
2179 | *ph_subsys, u32 h_control, unsigned int index, u32 *attack) | 2179 | *ph_subsys, u32 h_control, unsigned int index, u32 *attack) |
2180 | { | 2180 | { |
2181 | return hpi_control_param_get(ph_subsys, h_control, | 2181 | return hpi_control_param_get(ph_subsys, h_control, |
2182 | HPI_COMPANDER_ATTACK, 0, index, attack, &index); | 2182 | HPI_COMPANDER_ATTACK, 0, index, attack, NULL); |
2183 | } | 2183 | } |
2184 | 2184 | ||
2185 | u16 hpi_compander_set_decay_time_constant(const struct hpi_hsubsys *ph_subsys, | 2185 | u16 hpi_compander_set_decay_time_constant(const struct hpi_hsubsys *ph_subsys, |
@@ -2193,7 +2193,7 @@ u16 hpi_compander_get_decay_time_constant(const struct hpi_hsubsys *ph_subsys, | |||
2193 | u32 h_control, unsigned int index, u32 *decay) | 2193 | u32 h_control, unsigned int index, u32 *decay) |
2194 | { | 2194 | { |
2195 | return hpi_control_param_get(ph_subsys, h_control, | 2195 | return hpi_control_param_get(ph_subsys, h_control, |
2196 | HPI_COMPANDER_DECAY, 0, index, decay, &index); | 2196 | HPI_COMPANDER_DECAY, 0, index, decay, NULL); |
2197 | 2197 | ||
2198 | } | 2198 | } |
2199 | 2199 | ||
@@ -2244,7 +2244,7 @@ u16 hpi_compander_get_ratio(const struct hpi_hsubsys *ph_subsys, | |||
2244 | u32 h_control, u32 index, u32 *ratio100) | 2244 | u32 h_control, u32 index, u32 *ratio100) |
2245 | { | 2245 | { |
2246 | return hpi_control_param_get(ph_subsys, h_control, | 2246 | return hpi_control_param_get(ph_subsys, h_control, |
2247 | HPI_COMPANDER_RATIO, 0, index, ratio100, &index); | 2247 | HPI_COMPANDER_RATIO, 0, index, ratio100, NULL); |
2248 | } | 2248 | } |
2249 | 2249 | ||
2250 | u16 hpi_level_query_range(const struct hpi_hsubsys *ph_subsys, u32 h_control, | 2250 | u16 hpi_level_query_range(const struct hpi_hsubsys *ph_subsys, u32 h_control, |
@@ -3258,8 +3258,7 @@ static inline size_t hpi_entity_item_count(struct hpi_entity *entity_ptr) | |||
3258 | static inline struct hpi_entity *hpi_entity_ptr_to_next(struct hpi_entity | 3258 | static inline struct hpi_entity *hpi_entity_ptr_to_next(struct hpi_entity |
3259 | *entity_ptr) | 3259 | *entity_ptr) |
3260 | { | 3260 | { |
3261 | return (void *)(((uint8_t *) entity_ptr) + | 3261 | return (void *)(((u8 *)entity_ptr) + hpi_entity_size(entity_ptr)); |
3262 | hpi_entity_size(entity_ptr)); | ||
3263 | } | 3262 | } |
3264 | 3263 | ||
3265 | static inline u16 hpi_entity_check_type(const enum e_entity_type t) | 3264 | static inline u16 hpi_entity_check_type(const enum e_entity_type t) |