commit | b5db76dba0642ea6f2391374f3b2b479014e5bf0 | [log] [tgz] |
---|---|---|
author | Mika Westerberg <mika.westerberg@linux.intel.com> | Tue Oct 08 19:03:34 2019 +0300 |
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | Fri Nov 01 14:32:00 2019 +0300 |
tree | 1a8f681791bfc0661450d548ff16b0f7194d5bbe | |
parent | b433d0100562233b21beb13c0139feeff350bc68 [diff] |
thunderbolt: Refactor add_switch() into two functions Currently add_switch() takes a huge amount of parameters that makes it hard to maintain. Instead of passing all those parameters we can split the function into two parts (alloc and add) and fill the additional switch fields directly in the functions calling those. While there remove redundant error logging in case kmemdup() fails. No functional changes. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>