Skip to content

Commit

Permalink
ALSA: asihpi - Remove useless code in hpi_meter_get_peak()
Browse files Browse the repository at this point in the history
The hpi_meter_get_peak() function contains the expression
"hm.obj_index = hm.obj_index", which does not carry any semantic load.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 719f82d ("ALSA: Add support of AudioScience ASI boards")
Signed-off-by: Valentina Goncharenko <goncharenko.vp@ispras.ru>
Link: https://lore.kernel.org/r/20220901102814.131855-1-goncharenko.vp@ispras.ru
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Valentina Goncharenko authored and Takashi Iwai committed Sep 1, 2022
1 parent ac5e2fb commit f51ba11
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/pci/asihpi/hpifunc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,6 @@ u16 hpi_meter_get_peak(u32 h_control, short an_peakdB[HPI_MAX_CHANNELS]
HPI_CONTROL_GET_STATE);
if (hpi_handle_indexes(h_control, &hm.adapter_index, &hm.obj_index))
return HPI_ERROR_INVALID_HANDLE;
hm.obj_index = hm.obj_index;
hm.u.c.attribute = HPI_METER_PEAK;

hpi_send_recv(&hm, &hr);
Expand Down

0 comments on commit f51ba11

Please sign in to comment.