Correctly checking eventfd function return value

Change-Id: I040c17dfc48f5829f07bec68c0b1fc5a351602c4
Signed-off-by: TanelDettenborn <tanel.dettenborn@intel.com>