From: Chen Gang Date: Tue, 21 May 2013 09:20:50 +0000 (+0800) Subject: powerpc/nvram64: Need return the related error code on failure occurs X-Git-Tag: v3.11-rc1~94^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7029705a9d0544186c29ae09708b3e5adb512835;p=pandora-kernel.git powerpc/nvram64: Need return the related error code on failure occurs When error occurs, need return the related error code to let upper caller know about it. ppc_md.nvram_size() can return the error code (e.g. core99_nvram_size() in 'arch/powerpc/platforms/powermac/nvram.c'). Also set ret value when only need it, so can save structions for normal cases. Signed-off-by: Chen Gang Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed