mempool: fix BSD compile warning (control reaches end of non-void function)

Change-Id: Ib3d748d070f3db7b37a7127f7ae54e83536bcf23