]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: hda_cs_dsp_ctl: Minor clean and redundant code removal
authorStefan Binding <sbinding@opensource.cirrus.com>
Tue, 11 Oct 2022 14:35:48 +0000 (15:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 12 Oct 2022 06:02:46 +0000 (08:02 +0200)
commit9623482d4ad7988f40b1ab16b1b8340935fa43e8
treede688bf670d81e066f9a6c262b90d96b972e2057
parent692dca786b4d1e7b0424a48378e463ddf67780f5
ALSA: hda: hda_cs_dsp_ctl: Minor clean and redundant code removal

The cs_dsp core will return an error if passed a NULL cs_dsp struct so
there is no need for the hda_cs_dsp_write|read_ctl functions to manually
check that. The cs_dsp core will also check the data is within bounds of
the control so the additional bounds check is redundant too. Simplify
things a bit by removing said code.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20221011143552.621792-2-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_cs_dsp_ctl.c