yet another coverity error fix

Change-Id: Iccdd02caf0b8302a55e803dc9131306d5fe5529d
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>