Skip to content

Commit 1d1f4b0

Browse files
simontrimmerLucas Tanure
authored andcommitted
ASoC: clsic-alg: tidy some trivial static analysis warnings
- explicitly reference function addresses - statement of one line doesn't require brackets Change-Id: Ica936abf68ce89454c7d8c8c954c7462f8ec92aa Signed-off-by: Simon Trimmer <[email protected]>
1 parent 6ff32e6 commit 1d1f4b0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

sound/soc/codecs/clsic-alg.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,8 +1333,8 @@ static const struct snd_kcontrol_new clsic_alg_snd_controls[] = {
13331333
};
13341334

13351335
static const struct snd_soc_codec_driver soc_codec_clsic_alg = {
1336-
.probe = clsic_alg_codec_probe,
1337-
.remove = clsic_alg_codec_remove,
1336+
.probe = &clsic_alg_codec_probe,
1337+
.remove = &clsic_alg_codec_remove,
13381338

13391339
.component_driver = {
13401340
.controls = clsic_alg_snd_controls,
@@ -1427,9 +1427,8 @@ static int clsic_alg_probe(struct platform_device *pdev)
14271427
/* Register codec with the ASoC core */
14281428
ret = snd_soc_register_codec(dev, &soc_codec_clsic_alg, clsic_alg_dai,
14291429
ARRAY_SIZE(clsic_alg_dai));
1430-
if (ret) {
1430+
if (ret)
14311431
clsic_err(clsic, "Failed to register codec: %d.\n", ret);
1432-
}
14331432

14341433
error:
14351434
if (ret != 0)
@@ -1471,8 +1470,8 @@ static struct platform_driver clsic_alg_driver = {
14711470
.name = "clsic-alg",
14721471
.of_match_table = clsic_alg_of_match,
14731472
},
1474-
.probe = clsic_alg_probe,
1475-
.remove = clsic_alg_remove,
1473+
.probe = &clsic_alg_probe,
1474+
.remove = &clsic_alg_remove,
14761475
};
14771476

14781477
module_platform_driver(clsic_alg_driver);

0 commit comments

Comments
 (0)