drm/nouveau/kms/nv50-: Remove (nv_encoder->crtc) checks in ->disable callbacks
authorLyude Paul <lyude@redhat.com>
Sat, 14 Nov 2020 00:14:11 +0000 (19:14 -0500)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 29 Jan 2021 06:49:13 +0000 (16:49 +1000)
commitf575f2bdb6c3c7a8debffd8df1f355656f59a9c0
treecad9b8d161646f1c552c870045b77d4a1967d6c0
parentf2fcb0692d6357f12f17a2f3fc3297ce6bab4e51
drm/nouveau/kms/nv50-: Remove (nv_encoder->crtc) checks in ->disable callbacks

Noticed these in both the disable (which we'll be getting rid of in a
moment) and the atomic disable callbacks: both callback types check whether
or not there's actually a CRTC assigned to the given encoder. However, as
->atomic_disable and ->disable will never be called without a CRTC assigned
to the given encoder there's no point in this check. So just remove it.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/dispnv50/disp.c