mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
drm/tegra: checking for IS_ERR() instead of NULL
The tegra_sor_hdmi_find_settings() function returns NULL on error and
not an ERR_PTR.
Fixes: 459cc2c680
('drm/tegra: sor: Add HDMI support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
cf6b17445d
commit
db8b42fbfc
1 changed files with 3 additions and 3 deletions
|
@ -1946,9 +1946,9 @@ static void tegra_sor_hdmi_enable(struct drm_encoder *encoder)
|
|||
|
||||
/* production settings */
|
||||
settings = tegra_sor_hdmi_find_settings(sor, mode->clock * 1000);
|
||||
if (IS_ERR(settings)) {
|
||||
dev_err(sor->dev, "no settings for pixel clock %d Hz: %ld\n",
|
||||
mode->clock * 1000, PTR_ERR(settings));
|
||||
if (!settings) {
|
||||
dev_err(sor->dev, "no settings for pixel clock %d Hz\n",
|
||||
mode->clock * 1000);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue