mtd: physmap_of: fix set but unused warning
authorBrian Norris <computersforpeace@gmail.com>
Mon, 7 Mar 2016 23:52:05 +0000 (15:52 -0800)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 10 Jul 2016 01:48:53 +0000 (18:48 -0700)
commitb137aab438382fdadfe1272869357485af0252b4
treeaca0d7028b98bbbc2c00aa694b9034141af3aa56
parentc3cb77f8980db9dba614822d2d4a4cc61e44c8e2
mtd: physmap_of: fix set but unused warning

drivers/mtd/maps/physmap_of.c: In function ‘of_flash_probe’:
drivers/mtd/maps/physmap_of.c:165:16: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]

This could be a problem if the 'reg' property is not set, since that
means 'count' will be uninitialized.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/physmap_of.c