]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: most: dim2: remove unnecessary string indirection in dev_err
authorArtem Lytkin <iprintercanon@gmail.com>
Tue, 24 Feb 2026 18:07:50 +0000 (21:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Feb 2026 15:03:40 +0000 (07:03 -0800)
Replace dev_err(&pdev->dev, "%s\n", "clk_prepare_enable failed") with
the direct format string dev_err(&pdev->dev, "clk_prepare_enable
failed\n"). The extra level of indirection through %s is unnecessary.

Signed-off-by: Artem Lytkin <iprintercanon@gmail.com>
Link: https://patch.msgid.link/20260224180750.28468-4-iprintercanon@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c

index e4c8b4995c6114b816aa36e8dabc46eabe16d36c..66617e89e02834a19fdd2d2a8196773a9043667a 100644 (file)
@@ -927,7 +927,7 @@ static int fsl_mx6_enable(struct platform_device *pdev)
 
        ret = clk_prepare_enable(dev->clk);
        if (ret) {
-               dev_err(&pdev->dev, "%s\n", "clk_prepare_enable failed");
+               dev_err(&pdev->dev, "clk_prepare_enable failed\n");
                return ret;
        }
 
@@ -975,7 +975,7 @@ static int rcar_gen2_enable(struct platform_device *pdev)
 
        ret = clk_prepare_enable(dev->clk);
        if (ret) {
-               dev_err(&pdev->dev, "%s\n", "clk_prepare_enable failed");
+               dev_err(&pdev->dev, "clk_prepare_enable failed\n");
                return ret;
        }
 
@@ -1020,7 +1020,7 @@ static int rcar_gen3_enable(struct platform_device *pdev)
 
        ret = clk_prepare_enable(dev->clk);
        if (ret) {
-               dev_err(&pdev->dev, "%s\n", "clk_prepare_enable failed");
+               dev_err(&pdev->dev, "clk_prepare_enable failed\n");
                return ret;
        }