diff options
author | 2013-12-13 21:19:58 -0800 | |
---|---|---|
committer | 2014-01-07 10:07:34 -0800 | |
commit | 103cdd8520b5ec85ab4345f54db5cc32a517f468 (patch) | |
tree | 989ce95429095a3a4ea6452b110a859d88b4b7f9 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mtd: plat_nand: Remove unnecessary OOM messages (diff) | |
download | linux-dev-103cdd8520b5ec85ab4345f54db5cc32a517f468.tar.xz linux-dev-103cdd8520b5ec85ab4345f54db5cc32a517f468.zip |
mtd: nand-gpio: don't waste memory for OF failure
We shouldn't try to allocate a resource until we're sure the
of_property_read_u64() call didn't fail. This is especially important if
we use this code for both CONFIG_OF and !CONFIG_OF builds, since
of_property_read_u64() will always return -ENOSYS for !CONFIG_OF.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions