Skip to contentSkip to conversation

gpu: drm/gma500/mdfld_dsi_output.c: remove unnecessary null pointer check

PATCH New Cong Ding 1 participant 1 message Jan 15, 2013

Subsystems (3)
lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 gpu: drm/gma500/mdfld_dsi_output.c: remove unnecessary null pointer check

the variable sender is dereferenced in line 95, so it is no reason to check null again in line 99.

---
 drivers/gpu/drm/gma500/mdfld_dsi_output.c |    5 -----
 1 file changed, 5 deletions(-)
drivers/gpu/drm/gma500/mdfld_dsi_output.c +0 -5
index 2d4ab48..67e439a 100644
@@ -96,11 +96,6 @@ void mdfld_dsi_brightness_init(struct mdfld_dsi_config *dsi_config, int pipe)
 	struct drm_psb_private *dev_priv = dev->dev_private;
 	u32 gen_ctrl_val;
 
-	if (!sender) {
-		DRM_ERROR("No sender found\n");
-		return;
-	}
-
 	/* Set default display backlight value to 85% (0xd8)*/
 	mdfld_dsi_send_mcs_short(sender, write_display_brightness, 0xd8, 1,
 				true);
Signature · 1 line
1.7.10.4