projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce8ff09
)
drm/i915: Correct error handling for i915_gem_object_create_from_data()
author
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 20:53:17 +0000
(20:53 +0000)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 22:54:40 +0000
(22:54 +0000)
i915_gem_object_create_from_data() always returns an error pointer on
failure, there is no need to check against NULL.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link:
http://patchwork.freedesktop.org/patch/msgid/20170317205317.7885-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/intel_uc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/intel_uc.c
b/drivers/gpu/drm/i915/intel_uc.c
index 86530c92337a0f7b5b55b3a455e38865704706df..d15a7d9d4eb046fb3c8fe0b7c5cb6bd20b6eeb76 100644
(file)
--- a/
drivers/gpu/drm/i915/intel_uc.c
+++ b/
drivers/gpu/drm/i915/intel_uc.c
@@
-377,8
+377,8
@@
void intel_uc_prepare_fw(struct drm_i915_private *dev_priv,
uc_fw->major_ver_wanted, uc_fw->minor_ver_wanted);
obj = i915_gem_object_create_from_data(dev_priv, fw->data, fw->size);
- if (IS_ERR
_OR_NULL
(obj)) {
- err =
obj ? PTR_ERR(obj) : -ENOMEM
;
+ if (IS_ERR(obj)) {
+ err =
PTR_ERR(obj)
;
goto fail;
}