]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: omap: drop condition with no effect
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Feb 2015 17:24:06 +0000 (12:24 -0500)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 6 Feb 2015 03:51:08 +0000 (19:51 -0800)
commita0df5d45e4b652ec806f3a850a0c2be1cd98638d
tree934952af871e3d44303cd1ad8548bd62f86a417f
parent26ceb5f8a7a5406713602cf8646b70e7c35c0a0c
mtd: nand: omap: drop condition with no effect

The if and the else branch code are identical - so the condition has no
effect on the effective code. This patch removes the condition and the
duplicated code and updates the documentation as suggested by
Roger Quadros <rogerq@ti.com>.

Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Pekon Gupta <pekon@pek-sem.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/omap2.c