summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/cmdlinepart.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-12-04 15:25:13 -0800
committerBrian Norris <computersforpeace@gmail.com>2015-12-09 10:21:52 -0800
commitc3168d26c8deea4cc0202bb19341ab55247c3941 (patch)
tree77b4be29c215580f3fd5170d6b4f5f4023b27613 /drivers/mtd/cmdlinepart.c
parent2027cba66a0591e65a64d3ecfe8a3aa2f55a681b (diff)
downloadlinux-c3168d26c8deea4cc0202bb19341ab55247c3941.tar.bz2
mtd: ofpart: assign return argument exactly once
It's easier to refactor these parsers if the return value gets assigned only once, just like every other MTD partition parser. This prepares for making the second arg to the parse_fn() const. This is OK if we construct the partitions completely first, and assign them to the return pointer only after we're done modifying them. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/cmdlinepart.c')
0 files changed, 0 insertions, 0 deletions