From: Hauke Mehrtens Date: Mon, 2 Aug 2010 21:56:22 +0000 (+0200) Subject: MIPS: BCM47xx: Fix nvram_getenv return value. X-Git-Tag: v2.6.36-rc1~563^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47a348614492987ef307aad299c09163344e4eaf;p=pandora-kernel.git MIPS: BCM47xx: Fix nvram_getenv return value. Nvram_getenv should behave like cfe_getenv. cfe_getenv returns 0 on success and -9 if the value was not found. If the input was wrong -8 will be returned by cfe_getenv. Change nvram_getenv to do the same. Signed-off-by: Hauke Mehrtens Cc: Waldemar Brodkorb Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/1520/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed