ASoC: samsung: i2s: Fix the checked out code style problems
authorHuang Chao <chao7.huang@samsung.com>
Mon, 30 Jun 2014 06:15:35 +0000 (14:15 +0800)
committerChanho Park <chanho61.park@samsung.com>
Thu, 7 Aug 2014 06:16:11 +0000 (15:16 +0900)
This patch just fix the code style issues about required space
missing and redundant line continuations have been checked out:

./scripts/checkpatch.pl -f ./sound/soc/samsung/i2s.c
ERROR: space required before the open brace '{'
\#1033: FILE: sound/soc/samsung/i2s.c:1033:
+ if (!IS_ERR(i2s->op_clk)){

WARNING: Avoid unnecessary line continuations
\#1225: FILE: sound/soc/samsung/i2s.c:1225:
+ dev_err(&pdev->dev, "idma address is not"\

total: 1 errors, 1 warnings, 1398 lines checked

./sound/soc/samsung/i2s.c has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Change-Id: I51f2bf0f6b203613b3a81d604b69c6e08ed97507
Signed-off-by: Huang Chao <chao7.huang@samsung.com>
sound/soc/samsung/i2s.c

index 0a0cdb1..33121dd 100644 (file)
@@ -1030,7 +1030,7 @@ static int samsung_i2s_dai_remove(struct snd_soc_dai *dai)
                if (i2s->quirks & QUIRK_NEED_RSTCLR)
                        writel(0, i2s->addr + I2SCON);
 
-               if (!IS_ERR(i2s->op_clk)){
+               if (!IS_ERR(i2s->op_clk)) {
                        clk_disable_unprepare(i2s->op_clk);
                        clk_put(i2s->op_clk);
                }
@@ -1222,8 +1222,7 @@ static int samsung_i2s_probe(struct platform_device *pdev)
                if (of_property_read_u32(np, "samsung,idma-addr",
                                         &idma_addr)) {
                        if (quirks & QUIRK_SEC_DAI) {
-                               dev_err(&pdev->dev, "idma address is not"\
-                                               "specified");
+                               dev_err(&pdev->dev, "idma address is not specified");
                                return -EINVAL;
                        }
                }