| Submitter | Shevchenko Andriy (EXT-Teleca/Helsinki) |
|---|---|
| Date | April 4, 2011, 8:21 a.m. |
| Message ID | <1301905275-2087-1-git-send-email-ext-andriy.shevchenko@nokia.com> |
| Download | mbox | patch |
| Permalink | /patch/89596/ |
| State | New |
| Headers | show |
Comments
On Mon, 2011-04-04 at 11:21 +0300, Andy Shevchenko wrote: > Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> > --- > mkfs.ubifs/mkfs.ubifs.c | 10 +++++----- > 1 files changed, 5 insertions(+), 5 deletions(-) Added the following commit message: "Artem: this is jut a clean-up, no functional changes." and pushed to mtd-utils.git, thanks!
Patch
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c index bc0817f..9f3c5e0 100644 --- a/mkfs.ubifs/mkfs.ubifs.c +++ b/mkfs.ubifs/mkfs.ubifs.c @@ -675,8 +675,11 @@ static int get_options(int argc, char**argv) if (optind != argc && !output) output = strdup(argv[optind]); - if (output) - out_ubi = !open_ubi(output); + + if (!output) + return err_msg("not output device or file specified"); + + out_ubi = !open_ubi(output); if (out_ubi) { c->min_io_size = c->di.min_io_size; @@ -684,9 +687,6 @@ static int get_options(int argc, char**argv) c->max_leb_cnt = c->vi.rsvd_lebs; } - if (!output) - return err_msg("not output device or file specified"); - if (c->min_io_size == -1) return err_msg("min. I/O unit was not specified " "(use -h for help)");
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com> --- mkfs.ubifs/mkfs.ubifs.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)