mtd: redboot: remove useless code
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 3 Feb 2012 09:37:47 +0000 (11:37 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:24:14 +0000 (00:24 +0100)
commit050c0c1bb2604a62bb250ff6181e9c00727da510
treeb17ed0512819652b9fb9f6254e01c173b528d3fd
parentb25675722acf8a81638afb1124b38c4752299fa5
mtd: redboot: remove useless code

We do not need to invoke 'mtd_can_have_bb()' before invoking
'mtd_block_isbad()' because the latter already handles the case when the MTD
device does not support bad blocks.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/redboot.c