SoC a1 : kernel/freertos: fix the coverity detection. [2/4]

PD#SWPL-171211

Problem:
Detection ERROR CID 339578 338974 339313.

Solution:
Fixed the error.

Verify:
A113L_AD403

Change-Id: If8dfd1a43931c5f57c6acce6670c75f65871d91e
Signed-off-by: fugui.zhang <fugui.zhang@amlogic.com>
3 files changed