diff options
author | Andy Green <andy.green@linaro.org> | 2011-12-05 09:05:21 +0800 |
---|---|---|
committer | Sebastien Jan <s-jan@ti.com> | 2011-12-19 15:15:32 +0100 |
commit | 126628c6a14dd9240eea875b9ab4efb613659918 (patch) | |
tree | 5f71eb4d47334100a9353c7dfc1496bac05c49ce /drivers | |
parent | 76c5038a48a8e109a173d298a943c839f165ba79 (diff) |
fix unitialized return in blaze touchscreen
Signed-off-by: Andy Green <andy.green@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/touchscreen/syntm12xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/syntm12xx.c b/drivers/input/touchscreen/syntm12xx.c index 2713ea579c9b..afce44ad7360 100644 --- a/drivers/input/touchscreen/syntm12xx.c +++ b/drivers/input/touchscreen/syntm12xx.c @@ -1638,7 +1638,7 @@ static int syn_flash_write_block_cmd_fast(struct syn *sd, const u8 *data, const u16 block_size = sd->flash_caps.block_size; u8 *d; u16 block; - int r; + int r = 0; d = kmalloc(block_size + 3, GFP_KERNEL); if (d == NULL) |