aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-05-12 18:46:12 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-21 21:52:21 +0200
commit5bfad4eee93df88def330ac9b021bacccb51bdff (patch)
tree7db2593ecee366e98990dc6f9d3bdccbbf2db960 /include/linux
parentMIPS: BCM47XX: Make sure NVRAM buffer ends with \0 (diff)
downloadwireguard-linux-5bfad4eee93df88def330ac9b021bacccb51bdff.tar.xz
wireguard-linux-5bfad4eee93df88def330ac9b021bacccb51bdff.zip
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 <zajec5@gmail.com> Cc: linux-mips@linux-mips.org Cc: Hauke Mehrtens <hauke@hauke-m.de> Cc: Hante Meuleman <meuleman@broadcom.com> Cc: Ian Kent <raven@themaw.net> Patchwork: https://patchwork.linux-mips.org/patch/10032/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions