video/imgdata: fix IMGDATA_SET_BUF macro int-conversion warning

set_buf return type is not a pointer but an integer, this will cause -Wint-conversion error.

Signed-off-by: chao an <anchao.archer@bytedance.com>
This commit is contained in:
Yuran Wu
2026-02-03 18:18:28 +08:00
committed by simbit18
parent 14fb39a6cd
commit 17bc7a36ce
+1 -1
View File
@@ -56,7 +56,7 @@
#define IMGDATA_UNINIT(d) \
((d)->ops->uninit ? (d)->ops->uninit(d) : -ENOTTY)
#define IMGDATA_SET_BUF(d, n, f, a, s) \
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : NULL)
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : -ENOTTY)
#define IMGDATA_VALIDATE_FRAME_SETTING(d, n, f, i) \
((d)->ops->validate_frame_setting ? \
(d)->ops->validate_frame_setting(d, n, f, i) : -ENOTTY)