public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
@ 2023-08-02  9:23 Li Zetao
  2023-08-17 11:01 ` Lee Jones
  2023-08-17 11:45 ` [PATCH -next v2] " Li Zetao
  0 siblings, 2 replies; 4+ messages in thread
From: Li Zetao @ 2023-08-02  9:23 UTC (permalink / raw)
  To: lee; +Cc: lizetao1, bot, linux-kernel

After the commit "92d82d76c84", the variable i is unused. Remove it
to silence the warning.

Reported-by: kernelci.org bot <bot@kernelci.org>
Closes: https://lore.kernel.org/all/64c8aeac.170a0220.e3234.2745@mx.google.com/
Signed-off-by: Li Zetao <lizetao1@huawei.com>
---
 drivers/mfd/ipaq-micro.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c
index cddfd2e808f2..c964ea6539aa 100644
--- a/drivers/mfd/ipaq-micro.c
+++ b/drivers/mfd/ipaq-micro.c
@@ -78,8 +78,6 @@ EXPORT_SYMBOL(ipaq_micro_tx_msg);
 
 static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *data)
 {
-	int i;
-
 	dev_dbg(micro->dev, "RX msg: %02x, %d bytes\n", id, len);
 
 	spin_lock(&micro->lock);
-- 
2.34.1


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

* Re: [PATCH -next] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
  2023-08-02  9:23 [PATCH -next] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg() Li Zetao
@ 2023-08-17 11:01 ` Lee Jones
  2023-08-17 11:45 ` [PATCH -next v2] " Li Zetao
  1 sibling, 0 replies; 4+ messages in thread
From: Lee Jones @ 2023-08-17 11:01 UTC (permalink / raw)
  To: Li Zetao; +Cc: bot, linux-kernel

On Wed, 02 Aug 2023, Li Zetao wrote:

> After the commit "92d82d76c84", the variable i is unused. Remove it

Please use the format:

<short_sha> ("<subject>") when referencing commits.

> to silence the warning.

If you're referring to a warning, please paste it here.

> Reported-by: kernelci.org bot <bot@kernelci.org>
> Closes: https://lore.kernel.org/all/64c8aeac.170a0220.e3234.2745@mx.google.com/
> Signed-off-by: Li Zetao <lizetao1@huawei.com>
> ---
>  drivers/mfd/ipaq-micro.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c
> index cddfd2e808f2..c964ea6539aa 100644
> --- a/drivers/mfd/ipaq-micro.c
> +++ b/drivers/mfd/ipaq-micro.c
> @@ -78,8 +78,6 @@ EXPORT_SYMBOL(ipaq_micro_tx_msg);
>  
>  static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *data)
>  {
> -	int i;
> -
>  	dev_dbg(micro->dev, "RX msg: %02x, %d bytes\n", id, len);
>  
>  	spin_lock(&micro->lock);
> -- 
> 2.34.1
> 

-- 
Lee Jones [李琼斯]

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

* [PATCH -next v2] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
  2023-08-02  9:23 [PATCH -next] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg() Li Zetao
  2023-08-17 11:01 ` Lee Jones
@ 2023-08-17 11:45 ` Li Zetao
  2023-08-17 11:50   ` (subset) " Lee Jones
  1 sibling, 1 reply; 4+ messages in thread
From: Li Zetao @ 2023-08-17 11:45 UTC (permalink / raw)
  To: lizetao1; +Cc: bot, lee, linux-kernel

There is a warning reported by kernel test robot:

drivers/mfd/ipaq-micro.c:81:6: warning:
	unused variable ‘i’ [-Wunused-variable]

Since the commit 92d82d76c842 ("mfd: ipaq-micro: Use %*ph for printing
hexdump of a small buffer"), the variable 'i' is unused. Remove it to
silence the warning.

Reported-by: kernelci.org bot <bot@kernelci.org>
Closes: https://lore.kernel.org/all/64c8aeac.170a0220.e3234.2745@mx.google.com/
Signed-off-by: Li Zetao <lizetao1@huawei.com>
---
v1 -> v2: Modify the format of the reference commit and add warning
information
v1: https://lore.kernel.org/all/20230802092342.970476-1-lizetao1@huawei.com/

 drivers/mfd/ipaq-micro.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c
index cddfd2e808f2..c964ea6539aa 100644
--- a/drivers/mfd/ipaq-micro.c
+++ b/drivers/mfd/ipaq-micro.c
@@ -78,8 +78,6 @@ EXPORT_SYMBOL(ipaq_micro_tx_msg);
 
 static void micro_rx_msg(struct ipaq_micro *micro, u8 id, int len, u8 *data)
 {
-	int i;
-
 	dev_dbg(micro->dev, "RX msg: %02x, %d bytes\n", id, len);
 
 	spin_lock(&micro->lock);
-- 
2.34.1


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

* Re: (subset) [PATCH -next v2] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
  2023-08-17 11:45 ` [PATCH -next v2] " Li Zetao
@ 2023-08-17 11:50   ` Lee Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2023-08-17 11:50 UTC (permalink / raw)
  To: Li Zetao; +Cc: bot, lee, linux-kernel

On Thu, 17 Aug 2023 19:45:05 +0800, Li Zetao wrote:
> There is a warning reported by kernel test robot:
> 
> drivers/mfd/ipaq-micro.c:81:6: warning:
> 	unused variable ‘i’ [-Wunused-variable]
> 
> Since the commit 92d82d76c842 ("mfd: ipaq-micro: Use %*ph for printing
> hexdump of a small buffer"), the variable 'i' is unused. Remove it to
> silence the warning.
> 
> [...]

Applied, thanks!

[1/1] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
      commit: 1cda16fd366ffce79c11838fea9e627d2e9d9fea

--
Lee Jones [李琼斯]


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

end of thread, other threads:[~2023-08-17 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-02  9:23 [PATCH -next] mfd: ipaq-micro: Remove unused variable i in micro_rx_msg() Li Zetao
2023-08-17 11:01 ` Lee Jones
2023-08-17 11:45 ` [PATCH -next v2] " Li Zetao
2023-08-17 11:50   ` (subset) " Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox