]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: remove unnecessary null test
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Tue, 21 Jul 2015 12:06:45 +0000 (17:36 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 21 Jul 2015 13:49:36 +0000 (15:49 +0200)
commite102fc5121a9938623b3075bd1e47f530b26bef6
tree32f8f2e4cc02121a68955a4cae3dca12868f7bd3
parent7e22174e6f58065747fedb3a24aa2025c20972f4
drm/i915: remove unnecessary null test

While creating the debugfs file we are setting the inode->i_private to
dev. That same dev is passed to these functions as private of struct
seq_file via single_open(). Moreover single_open is setting
file->private_data->private to dev.
So at this point it can never be NULL.
This check was added by commit 7c87db356d2d ("drm/i915: Add debugfs test
control files for Displayport compliance testing")

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c