drm/i915: fix return value check of debugfs_create_file()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 16 Dec 2013 06:13:25 +0000 (14:13 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 16 Dec 2013 10:04:43 +0000 (11:04 +0100)
commitf3c5fe979117908fb642ed130ae2cd78cb005931
tree849b93a1b7bbee48d94a632dc0df3577f3fd7305
parentf00076d2fd3fe25b2e8c83921818914dee37ffef
drm/i915: fix return value check of debugfs_create_file()

In case of error, the function debugfs_create_file() returns NULL
pointer not ERR_PTR() if debugfs is enabled. The IS_ERR() test in
the return value check should be replaced with NULL test.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c