summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLiu Zixian <liuzixian4@huawei.com>2022-07-18 09:53:57 +0800
committerMaxime Ripard <maxime@cerno.tech>2022-07-21 12:16:10 +0200
commit2b8428a10fd3763819eabf1acef6b5b2c7875520 (patch)
tree7382957826a673ee6d37ae576c3f086c72160365 /include
parentac991b874b098ecde2c5eb81da48d52b6b22851b (diff)
drm: correct comments
On failure, these functions return error pointer, not NULL. Signed-off-by: Liu Zixian <liuzixian4@huawei.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://patchwork.freedesktop.org/patch/msgid/20220718015357.1722-1-liuzixian4@huawei.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_gem_shmem_helper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_gem_shmem_helper.h b/include/drm/drm_gem_shmem_helper.h
index d0a57853c188..a2201b2488c5 100644
--- a/include/drm/drm_gem_shmem_helper.h
+++ b/include/drm/drm_gem_shmem_helper.h
@@ -210,7 +210,7 @@ static inline void drm_gem_shmem_object_unpin(struct drm_gem_object *obj)
* use it as their &drm_gem_object_funcs.get_sg_table handler.
*
* Returns:
- * A pointer to the scatter/gather table of pinned pages or NULL on failure.
+ * A pointer to the scatter/gather table of pinned pages or error pointer on failure.
*/
static inline struct sg_table *drm_gem_shmem_object_get_sg_table(struct drm_gem_object *obj)
{