Files
linux/drivers/gpu/drm
Colin Ian King 5663077a56 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
2017-09-08 11:06:54 -07:00
..
2017-09-02 14:23:06 +02:00
2017-08-27 19:29:46 +02:00
2017-09-06 08:39:55 +02:00
2017-08-16 12:06:02 +10:00
2017-08-15 14:46:16 -04:00
2017-08-27 19:30:49 +02:00
2017-08-18 09:10:46 +02:00
2017-08-27 19:31:06 +02:00
2017-08-11 10:49:21 +02:00
2017-08-23 23:08:36 +02:00