All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwmon: Remove unneeded semicolons
@ 2021-04-27  4:42 Wan Jiabing
  2021-04-27 14:49 ` Guenter Roeck
  0 siblings, 1 reply; 2+ messages in thread
From: Wan Jiabing @ 2021-04-27  4:42 UTC (permalink / raw)
  To: Wilken Gottwalt, Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel
  Cc: kael_w, Wan Jiabing

Fix the following coccicheck warning:

./drivers/hwmon/corsair-psu.c:379:2-3: Unneeded semicolon

Remove unneeded semicolons.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 drivers/hwmon/corsair-psu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c
index 3a5807e4a2ef..02298b86b57b 100644
--- a/drivers/hwmon/corsair-psu.c
+++ b/drivers/hwmon/corsair-psu.c
@@ -355,7 +355,7 @@ static umode_t corsairpsu_hwmon_power_is_visible(const struct corsairpsu_data *p
 		return 0444;
 	default:
 		return 0;
-	};
+	}
 }
 
 static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv, u32 attr,
@@ -376,7 +376,7 @@ static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv
 		break;
 	default:
 		break;
-	};
+	}
 
 	return res;
 }
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hwmon: Remove unneeded semicolons
  2021-04-27  4:42 [PATCH] hwmon: Remove unneeded semicolons Wan Jiabing
@ 2021-04-27 14:49 ` Guenter Roeck
  0 siblings, 0 replies; 2+ messages in thread
From: Guenter Roeck @ 2021-04-27 14:49 UTC (permalink / raw)
  To: Wan Jiabing
  Cc: Wilken Gottwalt, Jean Delvare, linux-hwmon, linux-kernel, kael_w

Hi,

On Tue, Apr 27, 2021 at 12:42:19PM +0800, Wan Jiabing wrote:
> Fix the following coccicheck warning:
> 
> ./drivers/hwmon/corsair-psu.c:379:2-3: Unneeded semicolon
> 
> Remove unneeded semicolons.
> 
> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>

Thanks a lot for your patch; applied.

In the future, please add the affected driver to the subject line, as in

hwmon: (corsair-psu) ...

Thanks,
Guenter

> ---
>  drivers/hwmon/corsair-psu.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/hwmon/corsair-psu.c b/drivers/hwmon/corsair-psu.c
> index 3a5807e4a2ef..02298b86b57b 100644
> --- a/drivers/hwmon/corsair-psu.c
> +++ b/drivers/hwmon/corsair-psu.c
> @@ -355,7 +355,7 @@ static umode_t corsairpsu_hwmon_power_is_visible(const struct corsairpsu_data *p
>  		return 0444;
>  	default:
>  		return 0;
> -	};
> +	}
>  }
>  
>  static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv, u32 attr,
> @@ -376,7 +376,7 @@ static umode_t corsairpsu_hwmon_in_is_visible(const struct corsairpsu_data *priv
>  		break;
>  	default:
>  		break;
> -	};
> +	}
>  
>  	return res;
>  }
> -- 
> 2.25.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-27 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27  4:42 [PATCH] hwmon: Remove unneeded semicolons Wan Jiabing
2021-04-27 14:49 ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.