fix coverity error #2

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