examples/ioat: fix initialization error handling

Previously, ioat_init() in the example programs was returning 0 even if
initialization failed.

Change-Id: I96b2ec5646f7051ab881611acff424fb8547d5eb
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-01-29 17:14:11 -07:00
parent 2c94318f92
commit b235c942fa
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ cleanup:
if (err != 0) { if (err != 0) {
ioat_exit(); ioat_exit();
} }
return 0; return err;
} }
static void static void

View File

@ -262,7 +262,7 @@ cleanup:
if (err != 0) { if (err != 0) {
ioat_exit(); ioat_exit();
} }
return 0; return err;
} }
static void static void