commit | f3c5fe979117908fb642ed130ae2cd78cb005931 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Mon Dec 16 14:13:25 2013 +0800 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Mon Dec 16 11:04:43 2013 +0100 |
tree | 849b93a1b7bbee48d94a632dc0df3577f3fd7305 | |
parent | f00076d2fd3fe25b2e8c83921818914dee37ffef [diff] |
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>