summaryrefslogtreecommitdiff
path: root/nand-utils/nftl_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'nand-utils/nftl_format.c')
-rw-r--r--nand-utils/nftl_format.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/nand-utils/nftl_format.c b/nand-utils/nftl_format.c
index ec87604..c8b8b50 100644
--- a/nand-utils/nftl_format.c
+++ b/nand-utils/nftl_format.c
@@ -198,7 +198,7 @@ static int checkbbt(void)
return (0);
}
-static void usage(int rc)
+static NORETURN void usage(int rc)
{
fprintf(stderr, "Usage: %s [-ib] <mtddevice> [<start offset> [<size>]]\n", PROGRAM_NAME);
exit(rc);
@@ -250,13 +250,11 @@ int main(int argc, char **argv)
case 'h':
case '?':
usage(EXIT_SUCCESS);
- break;
case 'V':
display_version();
break;
default:
usage(EXIT_FAILURE);
- break;
}
}