]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/atomic: Remove unneeded null check for private objects
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 27 Sep 2017 08:35:31 +0000 (10:35 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 6 Oct 2017 09:05:50 +0000 (11:05 +0200)
commitf0d2e86c1b9ecd9cbe967b94e2f0d197f30cb3e7
tree529b745ad1212289d9102f2660f2ec10da5b33cb
parent15438ab06515b093d61e2f35bb27d21e5e7f966e
drm/atomic: Remove unneeded null check for private objects

It can be seen in drm_atomic_get_private_obj_state() that
ptr will never be NULL, so skip the check for that case.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170927083532.5756-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c
include/drm/drm_atomic.h