mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user