Fix small compilation issue of variable not used.

Change-Id: Ia2f773cea5972997a0c636e0a35f1594b1bec25a
Signed-off-by: Or Kehati <ork@mellanox.com>