coverity error fix

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