fix coverity error

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