summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorkkitayam <[email protected]>2021-10-12 23:35:19 +0900
committerkkitayam <[email protected]>2021-10-12 23:35:19 +0900
commit67f1603833261d3d210e55c1e8a872b8d9f98a42 (patch)
treed0ecbb0ead61882408755706521b4c16e3554311 /src/class
parentef04dee52a148e33c372da17532314af6e91c14d (diff)
Fix a typo
Diffstat (limited to 'src/class')
-rw-r--r--src/class/video/video_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c
index d34fe7b92..91d3b2b72 100644
--- a/src/class/video/video_device.c
+++ b/src/class/video/video_device.c
@@ -909,7 +909,7 @@ bool tud_video_n_frame_xfer(uint_fast8_t ctl_idx, uint_fast8_t stm_idx, void *bu
{
TU_ASSERT(ctl_idx < CFG_TUD_VIDEO);
TU_ASSERT(stm_idx < CFG_TUD_VIDEO_STREAMING);
- if (!buffer || !buffer) return false;
+ if (!buffer || !bufsize) return false;
videod_streaming_interface_t *stm = _get_instance_streaming(ctl_idx, stm_idx);
if (!stm || !stm->desc.ep[0] || stm->buffer) return false;