staging: fsl-mc-bus: fix build warning
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:25:51 +0000 (09:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:28:34 +0000 (09:28 +0100)
commitfb17be96eed821f60670adf1748afb3d57fe63bb
tree233193f9e2feb0f32eca1308ad19c0e05e461aea
parent19e2be77f36cfd5930569cad2d197f31a576cf88
staging: fsl-mc-bus: fix build warning

error could be unitialized when it is used as a return value in
fsl_mc_device_add().  So fix up the warning by properly setting it.

Cc: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-bus.c