diff --git a/libavcodec/bmvvideo.c b/libavcodec/bmvvideo.c
index dbbc1001ca636a4b2611e49f611563333328540b..78a0945b7aa1a5e1f8cbe5b89e0b23beaa73cf33 100644
--- a/libavcodec/bmvvideo.c
+++ b/libavcodec/bmvvideo.c
@@ -193,7 +193,6 @@ static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame,
         if (dst == dst_end)
             return 0;
     }
-    return 0;
 }
 
 static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
index a4b93c2b3f35868f43f0191de5ca69faaaadb3d8..8fc026cf1e17fe8f91ba6c04c27f8ccc9c6eae50 100644
--- a/libavcodec/hevc_sei.c
+++ b/libavcodec/hevc_sei.c
@@ -354,7 +354,6 @@ static int decode_nal_sei_message(HEVCContext *s)
     } else { /* nal_unit_type == NAL_SEI_SUFFIX */
         return decode_nal_sei_suffix(s, payload_type, payload_size);
     }
-    return 1;
 }
 
 static int more_rbsp_data(GetBitContext *gb)
diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index bac6fb41e4b19bf1712e226b42c655d6f2647eec..dab9e410c330d0a504cc6116e9e7ca256e302bbe 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -978,13 +978,10 @@ static int process_frame_obj(SANMVideoContext *ctx)
     case 1:
     case 3:
         return old_codec1(ctx, top, left, w, h);
-        break;
     case 37:
         return old_codec37(ctx, top, left, w, h);
-        break;
     case 47:
         return old_codec47(ctx, top, left, w, h);
-        break;
     default:
         avpriv_request_sample(ctx->avctx, "Subcodec %d", codec);
         return AVERROR_PATCHWELCOME;
diff --git a/libavformat/rtpproto.c b/libavformat/rtpproto.c
index 840a36da00d2e40254f8e9713cadae270fb3b6db..0706cae25f379e419273bdab8b8aad22cdedeacb 100644
--- a/libavformat/rtpproto.c
+++ b/libavformat/rtpproto.c
@@ -512,7 +512,6 @@ static int rtp_read(URLContext *h, uint8_t *buf, int size)
         if (h->flags & AVIO_FLAG_NONBLOCK)
             return AVERROR(EAGAIN);
     }
-    return len;
 }
 
 static int rtp_write(URLContext *h, const uint8_t *buf, int size)
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c
index a722b98e4047c36edf6eb0a4399ed9699f94b221..0cb8f53a4cbacc187c460518bcbee56af61319d7 100644
--- a/libavformat/rtspdec.c
+++ b/libavformat/rtspdec.c
@@ -698,7 +698,6 @@ static int rtsp_listen(AVFormatContext *s)
             return AVERROR_INVALIDDATA;
         }
     }
-    return 0;
 }
 
 static int rtsp_probe(AVProbeData *p)
diff --git a/libavformat/smush.c b/libavformat/smush.c
index 5a9249ac4f91701f919da81f7c5a37a8306267db..fe544d876112046b288ed13a8615807f006ab3d8 100644
--- a/libavformat/smush.c
+++ b/libavformat/smush.c
@@ -129,7 +129,6 @@ static int smush_read_header(AVFormatContext *ctx)
                 break;
             default:
                 return AVERROR_INVALIDDATA;
-                break;
             }
         }
 
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 6ae2af65b8a8c86ec22847c2cd5dcf3bfff212d4..6f870789265a9e8371e28ff9ca15f89456051b6e 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -311,8 +311,6 @@ static int set_string_number(void *obj, void *target_obj, const AVOption *o, con
         if (!i || !*val)
             return 0;
     }
-
-    return 0;
 }
 
 static int set_string_image_size(void *obj, const AVOption *o, const char *val, int *dst)