Skip to contentSkip to conversation

i915: Remove redundant NULL check upon kfree()

PATCH New Davidlohr Bueso 1 participant 1 message Aug 11, 2010

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

PATCH 1/1 i915: Remove redundant NULL check upon kfree()

i915: Remove redundant NULL check upon kfree().

---
 drivers/gpu/drm/i915/intel_dvo.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_dvo.c +1 -2
index 227feca..b3955bc 100644
@@ -283,8 +283,7 @@ static void intel_dvo_enc_destroy(struct drm_encoder *encoder)
 	if (dvo) {
 		if (dvo->dev_ops->destroy)
 			dvo->dev_ops->destroy(dvo);
-		if (dvo->panel_fixed_mode)
-			kfree(dvo->panel_fixed_mode);
+		kfree(dvo->panel_fixed_mode);
 	}
 	if (intel_encoder->i2c_bus)
 		intel_i2c_destroy(intel_encoder->i2c_bus);
Signature · 1 line
1.7.0.4