checkpatch.pl emits error
ERROR: do not use assignment in if condition
Correctly indent switch statement.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
while ((c = getopt(argc, argv, "m:h")) != EOF) {
switch (c) {
- case 'm':
- if (parse_map(optarg)) {
- usage(argv[0]);
- exit(EXIT_FAILURE);
- }
- break;
- case 'h':
- usage(argv[0]);
- exit(EXIT_SUCCESS);
- default:
- usage(argv[0]);
- exit(EXIT_FAILURE);
+ case 'm':
+ if (parse_map(optarg)) {
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
+ }
+ break;
+ case 'h':
+ usage(argv[0]);
+ exit(EXIT_SUCCESS);
+ default:
+ usage(argv[0]);
+ exit(EXIT_FAILURE);
}
};