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)
commit49b0dea1eb5e0fd5e498a2c2ce50d2e036494072
treede688bf670d81e066f9a6c262b90d96b972e2057
parent97d917879d7f92df09c3f21fd54609a8bcd654b2
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