diff options
author | Valentina Goncharenko | 2022-09-01 13:28:14 +0300 |
---|---|---|
committer | Takashi Iwai | 2022-09-01 14:37:22 +0200 |
commit | f51ba1148a810a16eead9f0b29bfa2a8f8ab3afb (patch) | |
tree | 90b578200e9bdc3ba906a6451b956e7d0cdd6e9e /sound/pci | |
parent | ac5e2fb425e1121ceef2b9d1b3ffccc195d55707 (diff) |
ALSA: asihpi - Remove useless code in hpi_meter_get_peak()
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: 719f82d3987a ("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>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/asihpi/hpifunc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 1de05383126a..24047fafef51 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c @@ -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); |