variable 'retval' set but not used [-Werror=unused-but-set-variable]

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