]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteb42ae674a5dee88f00505f1f16562d2048a3751
treecad9b8d161646f1c552c870045b77d4a1967d6c0
parentf3c72508839e2069eb9ffdd6dc9df31d7bc4e7a0
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