diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-07 19:40:16 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-07-07 19:41:12 -0400 |
commit | 8830cb88dd6d60c3bb4cb46d8a855628e4875b18 (patch) | |
tree | abcd9af9bb17161edaa35707c878a547a82d3828 /drivers/input | |
parent | f053ea8d841a3a4620fff4a1b2ab1da9d7c53939 (diff) |
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 <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/wacom_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/wacom_i2c.c b/drivers/input/touchscreen/wacom_i2c.c index 35572575d34a..0c01657132fd 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, | |||
149 | { | 149 | { |
150 | struct wacom_i2c *wac_i2c; | 150 | struct wacom_i2c *wac_i2c; |
151 | struct input_dev *input; | 151 | struct input_dev *input; |
152 | struct wacom_features features; | 152 | struct wacom_features features = { 0 }; |
153 | int error; | 153 | int error; |
154 | 154 | ||
155 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { | 155 | if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { |