summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/hdmi.c
diff options
context:
space:
mode:
authorColin Patrick McCabe <cmccabe@nvidia.com>2011-11-09 13:46:54 -0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-02-03 05:20:47 -0800
commit59d63497a26dc94612e14c905db6c2368dcdbf43 (patch)
tree9f8fa54e4151e4d100e6373f7ba2ff15b723b4a2 /drivers/video/tegra/dc/hdmi.c
parent9ba7a60e8c71e46580da32f4d0e8eed3fb11a47a (diff)
video:tegra:hdmi: skip useless check
Don't check if dc is NULL after we've already dereferenced it. Reviewed-on: http://git-master/r/63647 Change-Id: I0af6c829b6143b21a1f7de47a1ccfeac4bda99e0 Signed-off-by: Colin Patrick McCabe <cmccabe@nvidia.com> Signed-off-by: Jon Mayo <jmayo@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-on: http://git-master/r/78434 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/video/tegra/dc/hdmi.c')
-rw-r--r--drivers/video/tegra/dc/hdmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/hdmi.c b/drivers/video/tegra/dc/hdmi.c
index 413a3df8c39b..d8c0c289ee66 100644
--- a/drivers/video/tegra/dc/hdmi.c
+++ b/drivers/video/tegra/dc/hdmi.c
@@ -777,7 +777,7 @@ bool tegra_dc_hdmi_detect_test(struct tegra_dc *dc, unsigned char *edid_ptr)
struct fb_monspecs specs;
struct tegra_dc_hdmi_data *hdmi = tegra_dc_get_outdata(dc);
- if (!dc || !hdmi || !edid_ptr) {
+ if (!hdmi || !edid_ptr) {
dev_err(&dc->ndev->dev, "HDMI test failed to get arguments.\n");
return false;
}