From: Dmitry Torokhov Date: Sat, 7 Jul 2012 23:40:16 +0000 (-0700) Subject: Input: wacom_i2c - fix compiler warning X-Git-Tag: upstream/snapshot3+hdmi~3244^2~121^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8830cb88dd6d60c3bb4cb46d8a855628e4875b18;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git Input: wacom_i2c - fix compiler warning Apparently GCC can't figure out that we bail if we fail to query device and will not try to use 'features': drivers/input/touchscreen/wacom_i2c.c: In function ‘wacom_i2c_probe’: drivers/input/touchscreen/wacom_i2c.c:177:20: warning: ‘features.fw_version’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index 3557257..0c01657 100644 --- a/drivers/input/touchscreen/wacom_i2c.c +++ b/drivers/input/touchscreen/wacom_i2c.c @@ -149,7 +149,7 @@ static int __devinit wacom_i2c_probe(struct i2c_client *client, { struct wacom_i2c *wac_i2c; struct input_dev *input; - struct wacom_features features; + struct wacom_features features = { 0 }; int error; if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) {