diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-10-08 19:03:34 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-11-01 14:32:00 +0300 |
commit | b5db76dba0642ea6f2391374f3b2b479014e5bf0 (patch) | |
tree | 1a8f681791bfc0661450d548ff16b0f7194d5bbe /drivers/thunderbolt/tb_regs.h | |
parent | b433d0100562233b21beb13c0139feeff350bc68 (diff) | |
download | linux-b5db76dba0642ea6f2391374f3b2b479014e5bf0.tar.xz |
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>
Diffstat (limited to 'drivers/thunderbolt/tb_regs.h')
0 files changed, 0 insertions, 0 deletions