[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <33cc25df-b34f-6bd1-5fc4-872b42369672@roeck-us.net>
Date: Mon, 13 Jul 2020 22:04:01 -0700
From: Guenter Roeck <linux@...ck-us.net>
To: "Saheed O. Bolarinwa" <refactormyself@...il.com>,
helgaas@...nel.org, Jean Delvare <jdelvare@...e.com>
Cc: bjorn@...gaas.com, skhan@...uxfoundation.org,
linux-pci@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
linux-kernel@...r.kernel.org, linux-hwmon@...r.kernel.org
Subject: Re: [RFC PATCH 17/35] hwmon: (sis5595) Tidy Success/Failure checks
On 7/13/20 5:22 AM, Saheed O. Bolarinwa wrote:
> Remove unnecessary check for 0.
>
> Signed-off-by: "Saheed O. Bolarinwa" <refactormyself@...il.com>
> ---
> This patch depends on PATCH 16/35
>
> drivers/hwmon/sis5595.c | 13 ++++---------
> drivers/hwmon/via686a.c | 13 ++++---------
> drivers/hwmon/vt8231.c | 13 ++++---------
> 3 files changed, 12 insertions(+), 27 deletions(-)
>
> diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c
> index 0ea174fb3048..91fdddaa4136 100644
> --- a/drivers/hwmon/sis5595.c
> +++ b/drivers/hwmon/sis5595.c
> @@ -825,8 +825,7 @@ static int sis5595_pci_probe(struct pci_dev *dev,
> pci_write_config_word(dev, SIS5595_BASE_REG, force_addr);
> }
>
> - if (0 !=
> - pci_read_config_word(dev, SIS5595_BASE_REG, &address)) {
> + if (pci_read_config_word(dev, SIS5595_BASE_REG, &address)) {
Ah, there is is, and I see that others commented on it.
Single patch, please.
Guenter
Powered by blists - more mailing lists