]> www.infradead.org Git - mtd-utils.git/commit
flash_eraseall: tweaks to make binary size smaller
authorLadislav Michl <ladis@linux-mips.org>
Fri, 20 Aug 2010 13:03:13 +0000 (15:03 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 30 Aug 2010 10:41:21 +0000 (13:41 +0300)
commitf49f5405d6baeaf074b1803a6abc116caf130b9d
tree372643987b6ee6111028c63611df81a8bb0509c2
parent5beab92915cb3cdd9e479c2af05cfd9c36bf79de
flash_eraseall: tweaks to make binary size smaller

Returning from main() instead of using exit() makes code more readable
and smaller (ARM EABI binary sizes)

   text    data     bss     dec     hex filename
  28882     436      44   29362    72b2 flash_eraseall
  28827     432      44   29303    7277 flash_eraseall.noexit

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
flash_eraseall.c