refactor handle_flash_bank_command
authorZachary T Welch <zw@superlucidity.net>
Tue, 17 Nov 2009 21:52:43 +0000 (13:52 -0800)
committerZachary T Welch <zw@superlucidity.net>
Thu, 19 Nov 2009 21:39:41 +0000 (13:39 -0800)
commitdd44ae18b49f6cb54a4c361e9fab70f4d0fafeec
tree0c1366698351edc62b24c01969992c555623168d
parentff25e76bad7e57da4ebd363f1b35d4af04acaa67
refactor handle_flash_bank_command

Move variables to point of first use, reducing their scope.
Add driver_name temporary to help arguments be changed later.

Eliminates the useless 'found' variable, changing the code to terminate
the loop immediate and return its success.
src/flash/flash.c