removed "err" variable

this fixes the compiler warning:

warning: unused variable ‘err’ [-Wunused-variable]