* [PATCH 2/3] video: backlight: lp855x_bl: fix compiler warning in lp855x_probe
@ 2013-03-08 19:31 Devendra Naga
2013-03-10 23:04 ` Kim, Milo
0 siblings, 1 reply; 2+ messages in thread
From: Devendra Naga @ 2013-03-08 19:31 UTC (permalink / raw)
To: linux-fbdev
while doing with make W=1 gcc (gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8))
found
drivers/video/backlight/lp855x_bl.c: In function ‘lp855x_probe’:
drivers/video/backlight/lp855x_bl.c:342:35: warning: variable ‘mode’ set but not used [-Wunused-but-set-variable]
fixed by removing it as since its not used anywhere
Cc: Milo(Woogyom) Kim <milo.kim@ti.com>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
drivers/video/backlight/lp855x_bl.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/video/backlight/lp855x_bl.c b/drivers/video/backlight/lp855x_bl.c
index 7ae9ae6..20111ef 100644
--- a/drivers/video/backlight/lp855x_bl.c
+++ b/drivers/video/backlight/lp855x_bl.c
@@ -339,7 +339,6 @@ static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
{
struct lp855x *lp;
struct lp855x_platform_data *pdata = cl->dev.platform_data;
- enum lp855x_brightness_ctrl_mode mode;
int ret;
if (!pdata) {
@@ -354,7 +353,6 @@ static int lp855x_probe(struct i2c_client *cl, const struct i2c_device_id *id)
if (!lp)
return -ENOMEM;
- mode = pdata->mode;
lp->client = cl;
lp->dev = &cl->dev;
lp->pdata = pdata;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH 2/3] video: backlight: lp855x_bl: fix compiler warning in lp855x_probe
2013-03-08 19:31 [PATCH 2/3] video: backlight: lp855x_bl: fix compiler warning in lp855x_probe Devendra Naga
@ 2013-03-10 23:04 ` Kim, Milo
0 siblings, 0 replies; 2+ messages in thread
From: Kim, Milo @ 2013-03-10 23:04 UTC (permalink / raw)
To: linux-fbdev
PiB3aGlsZSBkb2luZyB3aXRoIG1ha2UgVz0xIGdjYyAoZ2NjIChHQ0MpIDQuNy4yIDIwMTIxMTA5
IChSZWQgSGF0IDQuNy4yLQ0KPiA4KSkNCj4gDQo+IGZvdW5kDQo+IA0KPiBkcml2ZXJzL3ZpZGVv
L2JhY2tsaWdodC9scDg1NXhfYmwuYzogSW4gZnVuY3Rpb24g4oCYbHA4NTV4X3Byb2Jl4oCZOg0K
PiBkcml2ZXJzL3ZpZGVvL2JhY2tsaWdodC9scDg1NXhfYmwuYzozNDI6MzU6IHdhcm5pbmc6IHZh
cmlhYmxlIOKAmG1vZGXigJkNCj4gc2V0IGJ1dCBub3QgdXNlZCBbLVd1bnVzZWQtYnV0LXNldC12
YXJpYWJsZV0NCj4gDQo+IGZpeGVkIGJ5IHJlbW92aW5nIGl0IGFzIHNpbmNlIGl0cyBub3QgdXNl
ZCBhbnl3aGVyZQ0KDQpBY2tlZC1ieTogTWlsbyBLaW0gPG1pbG8ua2ltQHRpLmNvbT4NCg0K
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-10 23:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-08 19:31 [PATCH 2/3] video: backlight: lp855x_bl: fix compiler warning in lp855x_probe Devendra Naga
2013-03-10 23:04 ` Kim, Milo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).