am7xxx-play: uniform coding style
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 29 Jun 2013 22:15:30 +0000 (00:15 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 20 Jul 2013 22:18:03 +0000 (00:18 +0200)
Uniform the coding style of error paths to the one use throughout in the
file.

examples/am7xxx-play.c

index e958eee..21e5187 100644 (file)
@@ -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':