summaryrefslogtreecommitdiff
path: root/src/class/video
diff options
context:
space:
mode:
authorBen Avison <[email protected]>2022-09-05 12:53:49 +0100
committerBen Avison <[email protected]>2022-09-13 18:00:50 +0100
commit65ba15c37d50fa470fa24c38dbf0e30eba3147c0 (patch)
tree0a256668b5f4e70d9a1d5669d41027ed3c4ba9d0 /src/class/video
parent16518dcbbb6f20182a6f69556908afe35a7f6e25 (diff)
Remove unreachable code
IAR generates warning Pe111 'statement is unreachable'. In a couple of cases, replace return statements with TU_ATTR_FALLTHROUGH; because some compilers apparently can't figure out that the return statements are unreachable but do whinge about an imagined fall-through without them!
Diffstat (limited to 'src/class/video')
-rw-r--r--src/class/video/video_device.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c
index 1f653f5c5..a27287360 100644
--- a/src/class/video/video_device.c
+++ b/src/class/video/video_device.c
@@ -943,7 +943,6 @@ static int handle_video_stm_req(uint8_t rhport, uint8_t stage,
default: return VIDEO_ERROR_INVALID_REQUEST;
}
- return VIDEO_ERROR_UNKNOWN;
}
//--------------------------------------------------------------------+