block: fix a warning, val' may be used uninitialized in this function

Change-Id: If4b51097df0d9da195aa0e6c8b304ea4880d1eff
Signed-off-by: zwliew <zhaoweiliew@gmail.com>