diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 13:43:44 -0600 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2019-12-17 17:26:08 +0100 |
commit | 8b6fc114beeb9f1a270e5b6d25c30a5143801bf8 (patch) | |
tree | a77e1a24914f58ad7893da22143e8f4846d88168 /drivers/dma-buf/dma-heap.c | |
parent | 4f865a74c8f8a694eb9f6b6fdb8f5d8f475c8875 (diff) |
drm: remove duplicate check on parent and avoid BUG_ON
In drm_dev_init, parent is checked for NULL via assert after
checked in devm_drm_dev_init(). The patch removes the duplicate
check and replaces the assertion with WARN_ON. Further, it returns
-EINVAL consistent with the usage in devm_drm_dev_init.
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20191215194345.4679-1-pakki001@umn.edu
Diffstat (limited to 'drivers/dma-buf/dma-heap.c')
0 files changed, 0 insertions, 0 deletions