lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20251030162155.d08e9d6fd3100092be2ade80@hugovil.com>
Date: Thu, 30 Oct 2025 16:21:55 -0400
From: Hugo Villeneuve <hugo@...ovil.com>
To: Biju <biju.das.au@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Jiri Slaby
 <jirislaby@...nel.org>, Biju Das <biju.das.jz@...renesas.com>, Wolfram Sang
 <wsa+renesas@...g-engineering.com>, Lad Prabhakar
 <prabhakar.mahadev-lad.rj@...renesas.com>, Geert Uytterhoeven
 <geert+renesas@...der.be>, linux-kernel@...r.kernel.org,
 linux-serial@...r.kernel.org, linux-renesas-soc@...r.kernel.org
Subject: Re: [PATCH v2 03/13] serial: sh-sci: Drop extra lines

Hi Biju,

On Thu, 30 Oct 2025 17:57:51 +0000
Biju <biju.das.au@...il.com> wrote:

> From: Biju Das <biju.das.jz@...renesas.com>
> 
> Shorten the number lines in sci_init_clocks() by fitting the error
> messages within an 100-character length limit.
> 
> Signed-off-by: Biju Das <biju.das.jz@...renesas.com>
> ---
> v1->v2:
>  * Updated commit message 80-character->100-character.
>  * Increased line limit for error messages to 100-column limit.
> ---
>  drivers/tty/serial/sh-sci.c | 13 ++++---------
>  1 file changed, 4 insertions(+), 9 deletions(-)
> 
> diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
> index b33894d0273b..e9345f898224 100644
> --- a/drivers/tty/serial/sh-sci.c
> +++ b/drivers/tty/serial/sh-sci.c
> @@ -3008,11 +3008,8 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev)
>  			return PTR_ERR(clk);
>  
>  		if (!clk && sci_port->type == SCI_PORT_RSCI &&
> -		    (i == SCI_FCK || i == SCI_BRG_INT)) {
> -			return dev_err_probe(dev, -ENODEV,
> -					     "failed to get %s\n",
> -					     name);
> -		}
> +		    (i == SCI_FCK || i == SCI_BRG_INT))
> +			return dev_err_probe(dev, -ENODEV, "failed to get %s\n", name);
>  
>  		if (!clk && i == SCI_FCK) {
>  			/*
> @@ -3022,16 +3019,14 @@ static int sci_init_clocks(struct sci_port *sci_port, struct device *dev)
>  			 */
>  			clk = devm_clk_get(dev, "peripheral_clk");
>  			if (IS_ERR(clk))
> -				return dev_err_probe(dev, PTR_ERR(clk),
> -						     "failed to get %s\n",
> +				return dev_err_probe(dev, PTR_ERR(clk), "failed to get %s\n",
>  						     name);

This one can also be on one line (99 characters).


>  		}
>  
>  		if (!clk)
>  			dev_dbg(dev, "failed to get %s\n", name);
>  		else
> -			dev_dbg(dev, "clk %s is %pC rate %lu\n", name,
> -				clk, clk_get_rate(clk));
> +			dev_dbg(dev, "clk %s is %pC rate %lu\n", name, clk, clk_get_rate(clk));
>  		sci_port->clks[i] = clk;
>  	}
>  	return 0;
> -- 
> 2.43.0
> 
> 

-- 
Hugo Villeneuve

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ