u_gralloc: Remove usage of NONNULL macro

We agreed in [1] not to use it since it has little value,
but making a code less readable.

[1]: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25256

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Eric Engestrom <eric@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25256>
This commit is contained in:
Roman Stratiienko
2023-09-21 00:01:19 +03:00
committed by Marge Bot
parent 28b21fae6e
commit 3b6f14c4d3
2 changed files with 18 additions and 20 deletions

View File

@@ -72,7 +72,7 @@ out:
}
void
u_gralloc_destroy(struct u_gralloc **gralloc NONNULL)
u_gralloc_destroy(struct u_gralloc **gralloc)
{
int i;
@@ -101,10 +101,9 @@ u_gralloc_destroy(struct u_gralloc **gralloc NONNULL)
}
int
u_gralloc_get_buffer_basic_info(struct u_gralloc *gralloc NONNULL,
struct u_gralloc_buffer_handle *hnd NONNULL,
struct u_gralloc_buffer_basic_info *out
NONNULL)
u_gralloc_get_buffer_basic_info(struct u_gralloc *gralloc,
struct u_gralloc_buffer_handle *hnd,
struct u_gralloc_buffer_basic_info *out)
{
struct u_gralloc_buffer_basic_info info = {0};
int ret;
@@ -120,10 +119,9 @@ u_gralloc_get_buffer_basic_info(struct u_gralloc *gralloc NONNULL,
}
int
u_gralloc_get_buffer_color_info(struct u_gralloc *gralloc NONNULL,
struct u_gralloc_buffer_handle *hnd NONNULL,
struct u_gralloc_buffer_color_info *out
NONNULL)
u_gralloc_get_buffer_color_info(struct u_gralloc *gralloc,
struct u_gralloc_buffer_handle *hnd,
struct u_gralloc_buffer_color_info *out)
{
struct u_gralloc_buffer_color_info info = {0};
int ret;
@@ -142,8 +140,8 @@ u_gralloc_get_buffer_color_info(struct u_gralloc *gralloc NONNULL,
}
int
u_gralloc_get_front_rendering_usage(struct u_gralloc *gralloc NONNULL,
uint64_t *out_usage NONNULL)
u_gralloc_get_front_rendering_usage(struct u_gralloc *gralloc,
uint64_t *out_usage)
{
if (!gralloc->ops.get_front_rendering_usage)
return -ENOTSUP;

View File

@@ -59,20 +59,20 @@ enum u_gralloc_type {
struct u_gralloc *u_gralloc_create(enum u_gralloc_type type);
void u_gralloc_destroy(struct u_gralloc **gralloc NONNULL);
void u_gralloc_destroy(struct u_gralloc **gralloc);
int u_gralloc_get_buffer_basic_info(
struct u_gralloc *gralloc NONNULL,
struct u_gralloc_buffer_handle *hnd NONNULL,
struct u_gralloc_buffer_basic_info *out NONNULL);
struct u_gralloc *gralloc,
struct u_gralloc_buffer_handle *hnd,
struct u_gralloc_buffer_basic_info *out);
int u_gralloc_get_buffer_color_info(
struct u_gralloc *gralloc NONNULL,
struct u_gralloc_buffer_handle *hnd NONNULL,
struct u_gralloc_buffer_color_info *out NONNULL);
struct u_gralloc *gralloc,
struct u_gralloc_buffer_handle *hnd,
struct u_gralloc_buffer_color_info *out);
int u_gralloc_get_front_rendering_usage(struct u_gralloc *gralloc NONNULL,
uint64_t *out_usage NONNULL);
int u_gralloc_get_front_rendering_usage(struct u_gralloc *gralloc,
uint64_t *out_usage);
#ifdef __cplusplus
}