[PATCH] watchdog: iTCO_wdt: Convert comma to semicolon

Chen Ni posted 1 patch 1 year, 3 months ago
There is a newer version of this series
drivers/watchdog/iTCO_wdt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] watchdog: iTCO_wdt: Convert comma to semicolon
Posted by Chen Ni 1 year, 3 months ago
Replace a comma between expression statements by a semicolon.

Fixes: ce1b95ca23c1 ("watchdog: iTCO_wdt: Use allocated data structures")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
 drivers/watchdog/iTCO_wdt.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
index 264857d314da..35b358bcf94c 100644
--- a/drivers/watchdog/iTCO_wdt.c
+++ b/drivers/watchdog/iTCO_wdt.c
@@ -563,8 +563,8 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
 	}
 
 	ident.firmware_version = p->iTCO_version;
-	p->wddev.info = &ident,
-	p->wddev.ops = &iTCO_wdt_ops,
+	p->wddev.info = &ident;
+	p->wddev.ops = &iTCO_wdt_ops;
 	p->wddev.bootstatus = 0;
 	p->wddev.timeout = WATCHDOG_TIMEOUT;
 	watchdog_set_nowayout(&p->wddev, nowayout);
-- 
2.25.1
Re: [PATCH] watchdog: iTCO_wdt: Convert comma to semicolon
Posted by Guenter Roeck 1 year, 3 months ago
On 9/2/24 01:10, Chen Ni wrote:
> Replace a comma between expression statements by a semicolon.
> 
> Fixes: ce1b95ca23c1 ("watchdog: iTCO_wdt: Use allocated data structures")
> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
> ---

The patch is ok, but it doesn't _fix_ anything. The fixes tag should be dropped
when applying.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

Guenter


>   drivers/watchdog/iTCO_wdt.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
> index 264857d314da..35b358bcf94c 100644
> --- a/drivers/watchdog/iTCO_wdt.c
> +++ b/drivers/watchdog/iTCO_wdt.c
> @@ -563,8 +563,8 @@ static int iTCO_wdt_probe(struct platform_device *pdev)
>   	}
>   
>   	ident.firmware_version = p->iTCO_version;
> -	p->wddev.info = &ident,
> -	p->wddev.ops = &iTCO_wdt_ops,
> +	p->wddev.info = &ident;
> +	p->wddev.ops = &iTCO_wdt_ops;
>   	p->wddev.bootstatus = 0;
>   	p->wddev.timeout = WATCHDOG_TIMEOUT;
>   	watchdog_set_nowayout(&p->wddev, nowayout);
Re: [PATCH] watchdog: iTCO_wdt: Convert comma to semicolon
Posted by Andy Shevchenko 1 year, 3 months ago
On Mon, Sep 2, 2024 at 11:11 AM Chen Ni <nichen@iscas.ac.cn> wrote:
>
> Replace a comma between expression statements by a semicolon.
>
> Fixes: ce1b95ca23c1 ("watchdog: iTCO_wdt: Use allocated data structures")

Dunno if it deserves Fixes tag, otherwise
Reviewed-by: Andy Shevchenko <andy@kernel.org>

> Signed-off-by: Chen Ni <nichen@iscas.ac.cn>

-- 
With Best Regards,
Andy Shevchenko