Re: [PATCH] ASoC: codecs: lpass-wsa-macro: make sure array index is set

From: Mark Brown
Date: Fri Apr 30 2021 - 07:23:54 EST


On Thu, Apr 29, 2021 at 10:36:42AM -0700, trix@xxxxxxxxxx wrote:

> The happens because 'ec_tx' is never initialized and there is
> no default in the switch statement that sets ec_tx. Because there
> are only two cases for the switch, convert it to an if-else.

Add a default case that errors, that way if someone adds a new option
things are less painful.

Attachment: signature.asc
Description: PGP signature