]> git.karo-electronics.de Git - linux-beck.git/commit
drm/ast: Remove unnecessary NULL check in bo_unref
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 5 Apr 2014 08:10:51 +0000 (10:10 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Apr 2014 13:39:08 +0000 (15:39 +0200)
commiteb649a614d3a2204825cc41f32a7ae79ff74da35
treece6ad8ad1256ff6e8848ecb53d45c82655445f08
parent3d535eddf2b7fc93126aaf4e36c05fe751fb8c4b
drm/ast: Remove unnecessary NULL check in bo_unref

ttm_bo_unref unconditionally calls kref_put on it's argument, so the
thing can't be NULL without already causing Oopses.

Spotted by coverity.

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/ast/ast_main.c