summaryrefslogtreecommitdiff
path: root/drivers/mfd/ipaq-micro.c
diff options
context:
space:
mode:
authorLi Zetao <lizetao1@huawei.com>2023-08-17 19:45:05 +0800
committerLee Jones <lee@kernel.org>2023-08-22 08:07:50 +0100
commit87ea8c7e2d1981f9a05c1bbeb3d99861ae1ea8fb (patch)
treea49919bf066154b3cb8b9403eee56eb2ac992a9b /drivers/mfd/ipaq-micro.c
parent7970744b1df81a27ff8a24d92ee155436dd5dc8a (diff)
mfd: ipaq-micro: Remove unused variable i in micro_rx_msg()
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> Link: https://lore.kernel.org/r/20230817114505.1810920-1-lizetao1@huawei.com Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd/ipaq-micro.c')
-rw-r--r--drivers/mfd/ipaq-micro.c2
1 files changed, 0 insertions, 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);