drm/ast: Remove unnecessary NULL check in bo_unref
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / ast / ast_main.c
index 50535fd5a88d258492b90ca9e9e9cebfaf2de563..38941a6563123141a8ebded9d54600c2bbe8acf3 100644 (file)
@@ -411,10 +411,9 @@ static void ast_bo_unref(struct ast_bo **bo)
 
        tbo = &((*bo)->bo);
        ttm_bo_unref(&tbo);
-       if (tbo == NULL)
-               *bo = NULL;
-
+       *bo = NULL;
 }
+
 void ast_gem_free_object(struct drm_gem_object *obj)
 {
        struct ast_bo *ast_bo = gem_to_ast_bo(obj);