]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ALSA: asihpi - Remove useless code in hpi_meter_get_peak()
authorValentina Goncharenko <goncharenko.vp@ispras.ru>
Thu, 1 Sep 2022 10:28:14 +0000 (13:28 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 1 Sep 2022 12:37:22 +0000 (14:37 +0200)
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>
sound/pci/asihpi/hpifunc.c

index 1de05383126aabf9ef7c6286f37158ff0e56d494..24047fafef5187678e5f9dbd740b9817e500a7da 100644 (file)
@@ -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);