Message ID | 87r15rgn6p.wl-kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | b1384d4c95088d01f4266237faabf165d3d605fc |
Headers | show |
Series | ASoC: rsnd: care default case on rsnd_ssiu_busif_err_status_clear() | expand |
On Thu, 21 Apr 2022 02:55:27 +0000, Kuninori Morimoto wrote: > From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> > > commit cfb7b8bf1e2d66 ("ASoC: rsnd: tidyup > rsnd_ssiu_busif_err_status_clear()") merged duplicate code, but it didn't > care about default case, and causes smatch warnings. > > smatch warnings: > sound/soc/sh/rcar/ssiu.c:112 rsnd_ssiu_busif_err_status_clear() \ > error: uninitialized symbol 'offset'. > sound/soc/sh/rcar/ssiu.c:114 rsnd_ssiu_busif_err_status_clear() \ > error: uninitialized symbol 'shift'. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: rsnd: care default case on rsnd_ssiu_busif_err_status_clear() commit: b1384d4c95088d01f4266237faabf165d3d605fc All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/sh/rcar/ssiu.c b/sound/soc/sh/rcar/ssiu.c index 0d8f97633dd2..138f95dd9f4a 100644 --- a/sound/soc/sh/rcar/ssiu.c +++ b/sound/soc/sh/rcar/ssiu.c @@ -102,6 +102,8 @@ bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod) shift = 1; offset = 1; break; + default: + goto out; } for (i = 0; i < 4; i++) { @@ -120,7 +122,7 @@ bool rsnd_ssiu_busif_err_status_clear(struct rsnd_mod *mod) } rsnd_mod_write(mod, reg, val); } - +out: return error; }