Skip to contentSkip to conversation

Staging: sm750fb: sm750: Remove irrelevant code

PATCH New Shivani Bhardwaj 1 participant 1 message Oct 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Staging: sm750fb: sm750: Remove irrelevant code

The variable ret is only declared and initialized to 0, but never referenced, so remove it.

---
Changes in v2:
-Make commit message clearer.

 drivers/staging/sm750fb/sm750.c | 2 --
 1 file changed, 2 deletions(-)
drivers/staging/sm750fb/sm750.c +0 -2
index 8c1ecb3..805a403 100644
@@ -524,14 +524,12 @@ static int lynxfb_ops_check_var(struct fb_var_screeninfo *var,
 	struct lynxfb_crtc *crtc;
 	struct lynxfb_output *output;
 	struct lynx_share *share;
-	int ret;
 	resource_size_t request;
 
 	par = info->par;
 	crtc = &par->crtc;
 	output = &par->output;
 	share = par->share;
-	ret = 0;
 
 	pr_debug("check var:%dx%d-%d\n",
 		 var->xres,
Signature · 1 line
2.1.0