Skip to contentSkip to conversation

gpu: drm/gma500/mdfld_dsi_pkg_sender.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_pkg_sender.c: remove unnecessary null pointer check

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

---
 drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c +1 -1
index 489ffd2..823854a 100644
@@ -538,7 +538,7 @@ static int __read_panel_data(struct mdfld_dsi_pkg_sender *sender, u8 data_type,
 	u32 gen_data_reg;
 	int retry = MDFLD_DSI_READ_MAX_COUNT;
 
-	if (!sender || !data_out || !len_out) {
+	if (!data_out || !len_out) {
 		DRM_ERROR("Invalid parameters\n");
 		return -EINVAL;
 	}
Signature · 1 line
1.7.10.4