From: Sudip Mukherjee Date: Tue, 21 Jul 2015 12:06:45 +0000 (+0530) Subject: drm/i915: remove unnecessary null test X-Git-Tag: omap-for-v4.3/fixes-rc1~89^2~28^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aaffa340add31aeb4449667da8779df448b7987;p=pandora-kernel.git 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 eb3394faeb97 ("drm/i915: Add debugfs test control files for Displayport compliance testing") Signed-off-by: Sudip Mukherjee Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed