thunderbolt: Do not overwrite error code when domain adding fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 24 Nov 2017 14:48:25 +0000 (17:48 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 9 Mar 2018 09:54:10 +0000 (12:54 +0300)
commit68a7a2ace13156b8a3d8cd6cceab6c30b52e2923
tree4660b67ed85ebaac5f0c9cb6750d1cd4444dc4a5
parent79fae987518a3aa6c3c7b2e3ad5fe1e4080c12bc
thunderbolt: Do not overwrite error code when domain adding fails

If the Thunderbolt domain adding fails for some reason we currently
always return -EIO instead of the real error code. To make debugging
easier return the actual error code instead.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/thunderbolt/nhi.c