diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-12-04 15:25:13 -0800 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 10:21:52 -0800 |
commit | c3168d26c8deea4cc0202bb19341ab55247c3941 (patch) | |
tree | 77b4be29c215580f3fd5170d6b4f5f4023b27613 /drivers/mtd/cmdlinepart.c | |
parent | 2027cba66a0591e65a64d3ecfe8a3aa2f55a681b (diff) | |
download | linux-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