linux/arch/mips/bcm47xx
Rafał Miłecki 5bfad4eee9 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>
2015-06-21 21:52:21 +02:00
..
bcm47xx_private.h MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
board.c Merge branch '4.0-fixes' into mips-for-linux-next 2015-04-13 16:03:32 +02:00
buttons.c MIPS: BCM47xx: Devices database update for 4.1 (or 4.2?) 2015-04-02 13:54:24 +02:00
irq.c MIPS: BCM47XX: Initialize bcma bus later (with mm available) 2014-11-24 07:45:00 +01:00
Kconfig MIPS: BCM47XX: Select SYS_SUPPORTS_HIGHMEM for BCM47XX_BCMA 2014-07-30 22:17:22 +02:00
leds.c MIPS: BCM47xx: Devices database update for 4.1 (or 4.2?) 2015-04-02 13:54:24 +02:00
Makefile MIPS: BCM47XX: Add new file for device specific workarounds 2014-03-31 18:17:12 +02:00
nvram.c MIPS: BCM47XX: Simplify function looking for NVRAM entry 2015-06-21 21:52:21 +02:00
Platform MIPS: BCM47xx: Migrate to new platform makefile style. 2010-08-05 13:25:54 +01:00
prom.c MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
serial.c MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
setup.c MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
sprom.c MIPS: BCM47xx: Move filling most of SPROM to the generic function 2015-04-02 14:00:13 +02:00
time.c MIPS: BCM47XX: Fix coding style to match kernel standards 2015-04-01 17:22:10 +02:00
workarounds.c MIPS: BCM47XX: Add new file for device specific workarounds 2014-03-31 18:17:12 +02:00