diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-09-08 16:05:04 +0200 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-09-08 20:06:54 +0200 |
commit | 5663077a56804890506c913b3ca9fee78764f8b3 (patch) | |
tree | bd2f33c60e4166d9dbcdd4206be32f664541fa2e /drivers/dma-buf/sw_sync.c | |
parent | drm/todo: Add s/dev_*/DRM_DEV_*/ coversion to TODO (diff) | |
download | linux-5663077a56804890506c913b3ca9fee78764f8b3.tar.xz linux-5663077a56804890506c913b3ca9fee78764f8b3.zip |
drm/vc4: clean up error handling on devm_kzalloc failure
The current error handling when devm_kzalloc fails performs a
non-null check on connector which is redundant because connector
is null at that failure point. Once this is removed, make the
failure path into a trivial -ENOMEM return to clean up the
error handling. Also remove need to initialize connector to NULL.
Detected by CoverityScan CID#1339527 ("Logically dead code")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170908140504.1340-1-colin.king@canonical.com
Diffstat (limited to 'drivers/dma-buf/sw_sync.c')
0 files changed, 0 insertions, 0 deletions