[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87y3ppm5bh.fsf@anholt.net>
Date: Fri, 08 Sep 2017 11:08:18 -0700
From: Eric Anholt <eric@...olt.net>
To: Colin King <colin.king@...onical.com>,
David Airlie <airlied@...ux.ie>,
dri-devel@...ts.freedesktop.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drm/vc4: clean up error handling on devm_kzalloc failure
Colin King <colin.king@...onical.com> writes:
> From: Colin Ian King <colin.king@...onical.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!
Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)
Powered by blists - more mailing lists