various: remove redundant return

void return type functions don't need a final return statement.
This commit is contained in:
nanahi
2025-04-26 03:44:09 -04:00
committed by sfan5
parent 2b38b382cf
commit b47c805fa2
9 changed files with 0 additions and 13 deletions
-1
View File
@@ -275,7 +275,6 @@ static void init_physical_format(struct ao *ao)
coreaudio_error:
talloc_free(tmp);
return;
}
static bool init_audiounit(struct ao *ao, AudioStreamBasicDescription asbd, AudioChannelLayout *layout, size_t layout_size)
-1
View File
@@ -643,7 +643,6 @@ exit_label:
SAFE_RELEASE(state->pSessionControl);
MP_WARN(state, "Error setting audio session name: %s\n",
mp_HRESULT_to_str(hr));
return;
}
static void init_volume_control(struct wasapi_state *state)
-1
View File
@@ -654,7 +654,6 @@ static void hwdownload_process(struct mp_filter *f)
passthrough:
mp_pin_in_write(f->ppins[1], frame);
return;
}
static const struct mp_filter_info hwdownload_filter = {
-1
View File
@@ -311,7 +311,6 @@ static void precreate_graph(struct lavfi *c, bool first_init)
error:
free_graph(c);
c->failed = true;
return;
}
// Ensure to send EOF to each input pad, so the graph can be drained properly.
-1
View File
@@ -125,7 +125,6 @@ static void sws_process(struct mp_filter *f)
error:
mp_frame_unref(&frame);
mp_filter_internal_mark_failed(f);
return;
}
static const struct mp_filter_info sws_filter = {
-1
View File
@@ -79,7 +79,6 @@ static void remove_seat(struct clipboard_wayland_seat *seat)
ext_data_control_source_v1_destroy(seat->primary_selection_source);
wl_seat_destroy(seat->seat);
talloc_free(seat);
return;
}
static void destroy_offer(struct clipboard_wayland_data_offer *o)
-4
View File
@@ -130,8 +130,6 @@ static void copy_ass(struct sd_filter *sd, char **rpp, struct buffer *buf)
}
}
*rpp = rp;
return;
}
static bool skip_enclosed(struct sd_filter *sd, char **rpp, struct buffer *buf,
@@ -219,8 +217,6 @@ static void skip_speaker_label(struct sd_filter *sd, char **rpp, struct buffer *
return;
}
*rpp = rp;
return;
}
// Check for text enclosed in symbols, like (SOUND)
-1
View File
@@ -616,7 +616,6 @@ static void deallocate_xvimage(struct vo *vo, int foo)
ctx->Shminfo[foo] = (XShmSegmentInfo){0};
XSync(vo->x11->display, False);
return;
}
static inline void put_xvimage(struct vo *vo, XvImage *xvi)
-2
View File
@@ -2627,7 +2627,6 @@ static void remove_output(struct vo_wayland_output *out)
talloc_free(out->make);
talloc_free(out->model);
talloc_free(out);
return;
}
static void remove_seat(struct vo_wayland_seat *seat)
@@ -2667,7 +2666,6 @@ static void remove_seat(struct vo_wayland_seat *seat)
wl_seat_destroy(seat->seat);
talloc_free(seat);
return;
}
static void seat_create_data_source(struct vo_wayland_seat *seat)