watchdog: Convert comma to semicolon
PATCH 1/1 watchdog: Convert comma to semicolon
To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes.
Signed-off-by Shen Lichuan <[email protected]>
--- drivers/watchdog/iTCO_wdt.c | 4 ++-- drivers/watchdog/pm8916_wdt.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/watchdog/iTCO_wdt.c +2 -2
@@ -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);
drivers/watchdog/pm8916_wdt.c +1 -1
@@ -218,7 +218,7 @@ static int pm8916_wdt_probe(struct platform_device *pdev)return err; } - wdt->wdev.ops = &pm8916_wdt_ops, + wdt->wdev.ops = &pm8916_wdt_ops; wdt->wdev.parent = dev; wdt->wdev.min_timeout =PM8916_WDT_MIN_TIMEOUT ; wdt->wdev.max_timeout =PM8916_WDT_MAX_TIMEOUT ;
Signature · 1 line
2.17.1
Hi Shen,
Quoted 15 lines
To ensure code clarity and prevent potential errors, it's advisable to employ the ';' as a statement separator, except when ',' are intentionally used for specific purposes.
Signed-off-by Shen Lichuan <[email protected]>--- drivers/watchdog/iTCO_wdt.c | 4 ++-- drivers/watchdog/pm8916_wdt.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)drivers/watchdog/iTCO_wdt.c +0
-0
drivers/watchdog/iTCO_wdt.c static int iTCO_wdt_probe(struct platform_device *pdev) · line 570
Quoted 10 lines
drivers/watchdog/iTCO_wdt.c +2
-2@@ -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);
Removed this part since there was allready a patch for this that is in linux-watchdog-next.
Quoted 16 lines
drivers/watchdog/pm8916_wdt.c +1
-1@@ -218,7 +218,7 @@ static int pm8916_wdt_probe(struct platform_device *pdev)return err; } - wdt->wdev.ops = &pm8916_wdt_ops, + wdt->wdev.ops = &pm8916_wdt_ops; wdt->wdev.parent = dev; wdt->wdev.min_timeout =PM8916_WDT_MIN_TIMEOUT ; wdt->wdev.max_timeout =PM8916_WDT_MAX_TIMEOUT ;Signature · 1 line
2.17.1
Reviewed-by Wim Van Sebroeck <[email protected]>
And added it to linux-watchdog-next also.
Kind regards,
Wim.