powerpc/fsl_rio: fix a missing error code
authorDan Carpenter <[email protected]>
Thu, 4 Aug 2016 22:31:52 +0000 (15:31 -0700)
committerLinus Torvalds <[email protected]>
Fri, 5 Aug 2016 00:02:09 +0000 (20:02 -0400)
commit380afa3698781e19699d2585b655e699b2da0fa0
treef3b6b15b29fb64d8fa6b2563445910b64d747f6f
parentb4911ea2bcf52345bf3dc73292b8c4676f6192c6
powerpc/fsl_rio: fix a missing error code

We should set the error code here rather than incorrectly returning 0.
Otherwise static checkers complain.

Link: http://lkml.kernel.org/r/20160804053525.GM775@mwanda
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Michael Ellerman <[email protected]>
Cc: Alexandre Bounine <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/powerpc/sysdev/fsl_rio.c