Re: [PATCH] ASoC: rt-sdw-common: Enhance switch case to prevent uninitialized variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 14, 2024 at 08:53:51AM +0000, Jack Yu wrote:

>  	case 0x05:
>  		jack_type = SND_JACK_HEADSET;
>  		break;
> +	default:
> +		jack_type = 0;
>  	}

Even though it's a bit redundant you should still have a break; here for
the kernel coding style, missing it might upset some linters.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux