coverity error fix

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