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>
This commit is contained in:
parent
0e9a126e95
commit
d1700f9258
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue