[PATCH] drm/vc4: clean up error handling on devm_kzalloc failure
Eric Anholt
eric at anholt.net
Fri Sep 8 18:08:18 UTC 2017
Colin King <colin.king at canonical.com> writes:
> From: Colin Ian King <colin.king at canonical.com>
>
> The current error handling on devm_kzalloc failures performs a non-null
> check on connector. Thss check is redundant because connector is null
> at that failure point. With this check removed, we may as well make
> the failure path into a trivial -ENOMEM return to clean up the error
> handling.
>
> Detected by CoverityScan CID#1339527 ("Logically dead code")
Reviewed and applied. Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170908/87af5fef/attachment.sig>
More information about the dri-devel
mailing list