Commit b235c942 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 2c94318f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -205,7 +205,7 @@ cleanup:
	if (err != 0) {
		ioat_exit();
	}
	return 0;
	return err;
}

static void
+1 −1
Original line number Diff line number Diff line
@@ -262,7 +262,7 @@ cleanup:
	if (err != 0) {
		ioat_exit();
	}
	return 0;
	return err;
}

static void