Function shouldn't end without a return statement

Signed-off-by: Harshavardhana <harsha@harshavardhana.net>