[alsa-devel] [PATCH] sound: soc: codecs: mt6358: change return type of mt6358_codec_init_reg

Tzung-Bi Shih tzungbi at google.com
Wed Jul 10 07:24:45 CEST 2019


On Wed, Jul 10, 2019 at 2:25 AM Hariprasad Kelam
<hariprasad.kelam at gmail.com> wrote:
>
> As mt6358_codec_init_reg function always returns 0 , change return type
> from int to void.
>
> fixes below issue reported by coccicheck
> sound/soc/codecs/mt6358.c:2260:5-8: Unneeded variable: "ret". Return "0"
> on line 2289
>
> Signed-off-by: Hariprasad Kelam <hariprasad.kelam at gmail.com>
Acked-by: Tzung-Bi Shih <tzungbi at google.com>

Thanks for cleaning this up.


More information about the Alsa-devel mailing list