1. coverity errors fix

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