[PATCH] drm/i915: Don't check if a drm_file * is NULL in the ioctl code path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux