Skip to content

Commit 17bc7a3

Browse files
yuranwusimbit18
authored andcommitted
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>
1 parent 14fb39a commit 17bc7a3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/nuttx/video/imgdata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#define IMGDATA_UNINIT(d) \
5757
((d)->ops->uninit ? (d)->ops->uninit(d) : -ENOTTY)
5858
#define IMGDATA_SET_BUF(d, n, f, a, s) \
59-
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : NULL)
59+
((d)->ops->set_buf ? (d)->ops->set_buf(d, n, f, a, s) : -ENOTTY)
6060
#define IMGDATA_VALIDATE_FRAME_SETTING(d, n, f, i) \
6161
((d)->ops->validate_frame_setting ? \
6262
(d)->ops->validate_frame_setting(d, n, f, i) : -ENOTTY)

0 commit comments

Comments
 (0)