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] [day] [month] [year] [list]
Message-ID: <Y5HsV41KCSEmWSNV@google.com>
Date:   Thu, 8 Dec 2022 13:53:27 +0000
From:   Lee Jones <lee@...nel.org>
To:     Matti Vaittinen <mazziesaccount@...il.com>
Cc:     Matti Vaittinen <matti.vaittinen@...rohmeurope.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: rohm-bd*: Use dev_err_probe()

On Wed, 23 Nov 2022, Matti Vaittinen wrote:

> The dev_err_probe() has (at least) following benefits over dev_err()
> when printing an error print for a failed function call at a device
> driver probe:
> 	- Omit error level print if error is 'EPRBE_DEFER'
> 	- Standardized print format for returned error
> 	- return the error value allowing shortening calls like:
> 
> 	if (ret) {
> 		dev_err(...);
> 		return ret;
> 	}
> 
> 	to
> 
> 	if (ret)
> 		return dev_err_probe(...);
> 
> Convert the ROHM BD71828, ROHM BD718x7 and ROHM BD9576 core drivers to
> use the dev_err_probe() when returned error is not hard-coded constant.
> 
> Signed-off-by: Matti Vaittinen <mazziesaccount@...il.com>
> ---
>  drivers/mfd/rohm-bd71828.c | 23 ++++++++++-------------
>  drivers/mfd/rohm-bd718x7.c | 21 ++++++++-------------
>  drivers/mfd/rohm-bd9576.c  | 17 ++++++++---------
>  3 files changed, 26 insertions(+), 35 deletions(-)

Applied, thanks.

-- 
Lee Jones [李琼斯]

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ