mtd: cfi: remove unneeded NULL checks
authorJiri Slaby <jslaby@suse.cz>
Sun, 10 Jan 2010 09:01:19 +0000 (10:01 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 25 Feb 2010 11:27:38 +0000 (11:27 +0000)
commit17fabf156507ec0f688f1e58be02f38e04de0c6e
tree08cb2aa3d7b9420d1b2e8f5c225060b2a8d4e75b
parentb2d4fbab79bd2b121c56db757c3a0f06ec7e0868
mtd: cfi: remove unneeded NULL checks

In cfi_intelext_setup and cfi_amdstd_setup, mtd is never NULL.
Remove unnecessary checks.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/cfi_cmdset_0002.c