diff options
| author | Daniel Vetter <[email protected]> | 2016-12-13 23:08:04 +0000 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2016-12-18 13:18:12 +0000 |
| commit | 2babdc850cc4f58753b7fb5332a57b513e3313cb (patch) | |
| tree | ad3764a4ba1b43f2cc60d01b23f3b4dc76391eb5 /drivers/gpu/drm/amd | |
| parent | drm: Move atomic debugfs functions into drm_crtc_internal.h (diff) | |
| download | kernel-2babdc850cc4f58753b7fb5332a57b513e3313cb.tar.gz kernel-2babdc850cc4f58753b7fb5332a57b513e3313cb.zip | |
drm/radeon|amdgpu: Remove redundant num_connectors check
The list walk will shortcircuit anyway.
Cc: Alex Deucher <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c index fb902932f571..e63ece049b05 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c @@ -61,10 +61,8 @@ static void amdgpu_hotplug_work_func(struct work_struct *work) struct drm_connector *connector; mutex_lock(&mode_config->mutex); - if (mode_config->num_connector) { - list_for_each_entry(connector, &mode_config->connector_list, head) - amdgpu_connector_hotplug(connector); - } + list_for_each_entry(connector, &mode_config->connector_list, head) + amdgpu_connector_hotplug(connector); mutex_unlock(&mode_config->mutex); /* Just fire off a uevent and let userspace tell us what to do */ drm_helper_hpd_irq_event(dev); |
