ACPI / APEI: Fix the returned value in erst_dbg_read
authorAdrian Huang <adrian.huang@hp.com>
Fri, 14 Dec 2012 23:30:07 +0000 (00:30 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 3 Jan 2013 12:10:20 +0000 (13:10 +0100)
If the persistent store is empty initially, the function 'erst_dbg_read'
returns a nonzero value. The better way is to return a zero indicating the
read operation reaches EOF.

Tested on two different servers.

Signed-off-by: Adrian Huang <adrian.huang@hp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

No differences found