diff options
author | Liu Zixian <liuzixian4@huawei.com> | 2022-07-18 04:53:57 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-07-21 13:16:10 +0300 |
commit | 2b8428a10fd3763819eabf1acef6b5b2c7875520 (patch) | |
tree | 7382957826a673ee6d37ae576c3f086c72160365 /include/drm | |
parent | ac991b874b098ecde2c5eb81da48d52b6b22851b (diff) | |
download | linux-2b8428a10fd3763819eabf1acef6b5b2c7875520.tar.xz |
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/drm')
-rw-r--r-- | include/drm/drm_gem_shmem_helper.h | 2 |
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) { |