[Intel-gfx] [PATCH] drm/i915: Don't check if a drm_file * is NULL in the ioctl code path
Chris Wilson
chris at chris-wilson.co.uk
Thu Jul 11 23:11:39 CEST 2013
On Thu, Jul 11, 2013 at 07:31:34PM +0100, Damien Lespiau wrote:
> Right now code checkers point out that we try to dereference file before
> testing it for NULL.
>
> This check doesn't seem necessary as file needs to be valid for the
> ioctl() code to run.
This whole function was a copy'n'paste mistake with a rewrite on the
mailing list.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list