diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-05-23 15:56:09 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-06-04 10:04:40 +0200 |
commit | d1700f9258552294300083eb62f83262f21ae1db (patch) | |
tree | 919ffc52c4343f4bf2ca555a3488135f348ad297 /drivers/video | |
parent | OMAPDSS: fix build when DEBUG_FS or DSS_DEBUG_SUPPORT disabled (diff) | |
download | linux-d1700f9258552294300083eb62f83262f21ae1db.tar.xz linux-d1700f9258552294300083eb62f83262f21ae1db.zip |
OMAPDSS: Taal: fix compilation warning
This patch fixes a warning:
drivers/video/omap2/displays/panel-taal.c: In function
‘taal_num_errors_show’:
drivers/video/omap2/displays/panel-taal.c:529: warning: ‘errors’ may be
used uninitialized in this function
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/displays/panel-taal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c index 2ce9992f403b..901576eb5a84 100644 --- a/drivers/video/omap2/displays/panel-taal.c +++ b/drivers/video/omap2/displays/panel-taal.c @@ -526,7 +526,7 @@ static ssize_t taal_num_errors_show(struct device *dev, { struct omap_dss_device *dssdev = to_dss_device(dev); struct taal_data *td = dev_get_drvdata(&dssdev->dev); - u8 errors; + u8 errors = 0; int r; mutex_lock(&td->lock); |