2023-07-04 15:25:15

by Guenter Roeck

[permalink] [raw]
Subject: [PATCH] i2c: mpc: Drop unused variable

Fix the following build error.

Error log:
drivers/i2c/busses/i2c-mpc.c: In function 'mpc_i2c_setup_512x':
drivers/i2c/busses/i2c-mpc.c:310:20: error: unused variable 'pval'

Fixes: 9d178e00583e ("i2c: mpc: Use of_property_read_reg() to parse "reg"")
Cc: Rob Herring <[email protected]>
Cc: Andi Shyti <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
---
drivers/i2c/busses/i2c-mpc.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-mpc.c b/drivers/i2c/busses/i2c-mpc.c
index fb1b640f33b7..f460a7fb4eae 100644
--- a/drivers/i2c/busses/i2c-mpc.c
+++ b/drivers/i2c/busses/i2c-mpc.c
@@ -307,7 +307,6 @@ static void mpc_i2c_setup_512x(struct device_node *node,
{
struct device_node *node_ctrl;
void __iomem *ctrl;
- const u32 *pval;
u32 idx;

/* Enable I2C interrupts for mpc5121 */
--
2.39.2



2023-07-06 19:52:51

by Wolfram Sang

[permalink] [raw]
Subject: Re: [PATCH] i2c: mpc: Drop unused variable

On Tue, Jul 04, 2023 at 08:00:31AM -0700, Guenter Roeck wrote:
> Fix the following build error.
>
> Error log:
> drivers/i2c/busses/i2c-mpc.c: In function 'mpc_i2c_setup_512x':
> drivers/i2c/busses/i2c-mpc.c:310:20: error: unused variable 'pval'
>
> Fixes: 9d178e00583e ("i2c: mpc: Use of_property_read_reg() to parse "reg"")
> Cc: Rob Herring <[email protected]>
> Cc: Andi Shyti <[email protected]>
> Signed-off-by: Guenter Roeck <[email protected]>

Let's apply this fast before this patch comes in multiple times...

Applied to for-current, thanks!


Attachments:
(No filename) (575.00 B)
signature.asc (849.00 B)
Download all attachments