Change the return value of a function to void

This avoids a warning about control reaching the end of a non-void
function.