Fixing coverity error

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