EDAC, pnd2: Return proper error value from apl_rd_reg()
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 22 Jun 2017 22:05:35 +0000 (17:05 -0500)
committerBorislav Petkov <bp@suse.de>
Fri, 23 Jun 2017 07:48:50 +0000 (09:48 +0200)
commitee514c7a2379385fcec363f2f5f8db4eb56bc48c
tree5a36ac3d8368dab11f80b94ab63863b86fdc84d7
parentff0abed4922ffbd40dc4e5a78b8ea56a5eb68ec7
EDAC, pnd2: Return proper error value from apl_rd_reg()

Add code comment to make it clear that the fall-through is intentional
and, OR ret with its previous value to avoid overwriting it so that
callers can check the correct return value.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170622220535.GA4896@embeddedgus
[ Massage a bit. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/pnd2_edac.c