linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] video: backlight: jornada720_lcd.c:  Cleaning up variable that is never used
@ 2014-07-05 12:12 Rickard Strandqvist
  2014-07-06 18:21 ` Rickard Strandqvist
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Rickard Strandqvist @ 2014-07-05 12:12 UTC (permalink / raw)
  To: Jingoo Han, Bryan Wu
  Cc: Rickard Strandqvist, Rickard Strandqvist, Lee Jones,
	Jean-Christophe Plagniol-Villard, Tomi Valkeinen, linux-fbdev,
	linux-kernel

From: Rickard Strandqvist <rickard.strandqvist@sonymobile.com>

Variable ar assigned a value that is never used.
I have also removed all the code that thereby serves no purpose.

This was found using a static code analysis program called cppcheck

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 drivers/video/backlight/jornada720_lcd.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/video/backlight/jornada720_lcd.c b/drivers/video/backlight/jornada720_lcd.c
index da3876c..b304319 100644
--- a/drivers/video/backlight/jornada720_lcd.c
+++ b/drivers/video/backlight/jornada720_lcd.c
@@ -56,12 +56,10 @@ static int jornada_lcd_get_contrast(struct lcd_device *ld)
 
 static int jornada_lcd_set_contrast(struct lcd_device *ld, int value)
 {
-	int ret;
-
 	jornada_ssp_start();
 
 	/* start by sending our set contrast cmd to mcu */
-	ret = jornada_ssp_byte(SETCONTRAST);
+	jornada_ssp_byte(SETCONTRAST);
 
 	/* push the new value */
 	if (jornada_ssp_byte(value) != TXDUMMY) {
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-10  7:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-05 12:12 [PATCH] video: backlight: jornada720_lcd.c: Cleaning up variable that is never used Rickard Strandqvist
2014-07-06 18:21 ` Rickard Strandqvist
2014-07-07 10:46   ` Lee Jones
2014-07-07 20:00     ` Rickard Strandqvist
2014-07-07 10:50 ` Lee Jones
2014-07-07 20:01 ` Rickard Strandqvist
2014-07-09 16:30   ` Lee Jones
2014-07-09 22:08     ` Rickard Strandqvist
2014-07-10  2:28       ` Jingoo Han
2014-07-10  7:40         ` Lee Jones

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).