fixing compilation warning

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