diff options
| author | Rafał Miłecki <[email protected]> | 2015-05-12 18:46:12 +0200 |
|---|---|---|
| committer | Ralf Baechle <[email protected]> | 2015-06-21 21:52:21 +0200 |
| commit | 5bfad4eee93df88def330ac9b021bacccb51bdff (patch) | |
| tree | 7db2593ecee366e98990dc6f9d3bdccbbf2db960 /tools/perf/scripts/python/bin | |
| parent | d28c9a55c297db61018744007b6c86abff308751 (diff) | |
MIPS: BCM47XX: Simplify function looking for NVRAM entry
First of all it shouldn't modify copied NVRAM just to make sure it can
loop over all entries. It's enough to just compare current position
pointer with the end of buffer address.
Secondly buffer is guaranteed to be \0 ended, so we don't need strnchr.
Signed-off-by: Rafał Miłecki <[email protected]>
Cc: [email protected]
Cc: Hauke Mehrtens <[email protected]>
Cc: Hante Meuleman <[email protected]>
Cc: Ian Kent <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/10032/
Signed-off-by: Ralf Baechle <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions