[PATCH 04/11] i2c-mux-pca954x: remove use of uninitialized variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



force isn't used except to print its uninitialized value in an error
path. Drop it.

Signed-off-by: Ahmad Fatoum <ahmad@xxxxxx>
---
 drivers/i2c/muxes/i2c-mux-pca954x.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mux-pca954x.c
index d397e803b1e7..bbc4870c3eca 100644
--- a/drivers/i2c/muxes/i2c-mux-pca954x.c
+++ b/drivers/i2c/muxes/i2c-mux-pca954x.c
@@ -177,7 +177,7 @@ static int pca954x_probe(struct device_d *dev)
 {
 	struct i2c_client *client = to_i2c_client(dev);
 	struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
-	int num, force;
+	int num;
 	struct pca954x *data;
 	uintptr_t tmp;
 	int ret = -ENODEV;
@@ -220,8 +220,8 @@ static int pca954x_probe(struct device_d *dev)
 		if (data->virt_adaps[num] == NULL) {
 			ret = -ENODEV;
 			dev_err(&client->dev,
-				"failed to register multiplexed adapter"
-				" %d as bus %d\n", num, force);
+				"failed to register multiplexed adapter%d\n",
+				num);
 			goto virt_reg_failed;
 		}
 	}
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux