summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-12 11:50:57 -0700
committerJesse Barnes <jbarnes@hobbes.virtuousgeek.org>2007-04-12 11:50:57 -0700
commitfb3c82f1d8362a0b7d64cb3bce75be8c72328e1c (patch)
treeee51e3ed6451fdc4ff29b1f793b36d264de8e6f8
parente183a091ff44e5b03ec521696830c45b2ce9ce87 (diff)
Don't need a NULL check prior to calling kfree.
-rw-r--r--linux-core/intel_crt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-core/intel_crt.c b/linux-core/intel_crt.c
index fe846eb8..ebf6e469 100644
--- a/linux-core/intel_crt.c
+++ b/linux-core/intel_crt.c
@@ -201,9 +201,7 @@ static void intel_crt_destroy(struct drm_output *output)
struct intel_output *intel_output = output->driver_private;
intel_i2c_destroy(intel_output->ddc_bus);
-
- if (output->driver_private)
- kfree(output->driver_private);
+ kfree(output->driver_private);
}
static int intel_crt_get_modes(struct drm_output *output)