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:
parent
2c94318f92
commit
b235c942fa
@ -205,7 +205,7 @@ cleanup:
|
|||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
ioat_exit();
|
ioat_exit();
|
||||||
}
|
}
|
||||||
return 0;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -262,7 +262,7 @@ cleanup:
|
|||||||
if (err != 0) {
|
if (err != 0) {
|
||||||
ioat_exit();
|
ioat_exit();
|
||||||
}
|
}
|
||||||
return 0;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user