[PATCH] video: fbdev: mb862xx: mb862xx-i2c: delete now unused "int ret" variable
From: Paul Gortmaker
Date: Sun Aug 14 2016 - 05:21:07 EST
In commit 6b610e004baf ("video: fbdev: mb862xx: mb862xx-i2c: don't
print error when adding adapter fails") the users of the variable
were removed, resulting in:
drivers/video/fbdev/mb862xx/mb862xx-i2c.c: In function âmb862xx_i2c_initâ:
drivers/video/fbdev/mb862xx/mb862xx-i2c.c:160:6: warning: unused variable âretâ [-Wunused-variable]
int ret;
^
...so here we remove the variable as well.
Fixes: 6b610e004baf ("video: fbdev: mb862xx: mb862xx-i2c: don't print error when adding adapter fails)"
Cc: Wolfram Sang <wsa-dev@xxxxxxxxxxxxxxxxxxxx>
Cc: Tomi Valkeinen <tomi.valkeinen@xxxxxx>
Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>
---
[Feel free to squash this into the original if you happen to be rebasing]
drivers/video/fbdev/mb862xx/mb862xx-i2c.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/video/fbdev/mb862xx/mb862xx-i2c.c b/drivers/video/fbdev/mb862xx/mb862xx-i2c.c
index 76d206857e3e..ba96c44f2761 100644
--- a/drivers/video/fbdev/mb862xx/mb862xx-i2c.c
+++ b/drivers/video/fbdev/mb862xx/mb862xx-i2c.c
@@ -157,8 +157,6 @@ static struct i2c_adapter mb862xx_i2c_adapter = {
int mb862xx_i2c_init(struct mb862xxfb_par *par)
{
- int ret;
-
mb862xx_i2c_adapter.algo_data = par;
par->adap = &mb862xx_i2c_adapter;
--
2.8.4