From b235c942fa26ebfb530e686cbaf07d6cc15fc7c3 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 29 Jan 2016 17:14:11 -0700 Subject: [PATCH] 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 --- examples/ioat/perf/perf.c | 2 +- examples/ioat/verify/verify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/ioat/perf/perf.c b/examples/ioat/perf/perf.c index 92c4f9504..125de094a 100644 --- a/examples/ioat/perf/perf.c +++ b/examples/ioat/perf/perf.c @@ -205,7 +205,7 @@ cleanup: if (err != 0) { ioat_exit(); } - return 0; + return err; } static void diff --git a/examples/ioat/verify/verify.c b/examples/ioat/verify/verify.c index dcf4ff02e..75fc5ccc5 100644 --- a/examples/ioat/verify/verify.c +++ b/examples/ioat/verify/verify.c @@ -262,7 +262,7 @@ cleanup: if (err != 0) { ioat_exit(); } - return 0; + return err; } static void