From 4c7287240fd97699708dd835aca141e6ac8bd036 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 30 Jun 2013 00:15:30 +0200 Subject: [PATCH] am7xxx-play: uniform coding style Uniform the coding style of error paths to the one use throughout in the file. --- examples/am7xxx-play.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index e958eee..21e5187 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -762,7 +762,8 @@ int main(int argc, char *argv[]) default: fprintf(stderr, "Invalid zoom mode value, must be between %d and %d\n", AM7XXX_ZOOM_ORIGINAL, AM7XXX_ZOOM_TEST); - exit(EXIT_FAILURE); + ret = -EINVAL; + goto out; } break; case 'h': -- 2.1.4