diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-10-08 18:03:34 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-11-01 12:32:00 +0100 |
commit | b5db76dba0642ea6f2391374f3b2b479014e5bf0 (patch) | |
tree | 1a8f681791bfc0661450d548ff16b0f7194d5bbe /drivers/thunderbolt/tb_regs.h | |
parent | thunderbolt: Add helper macro to iterate over switch ports (diff) | |
download | linux-b5db76dba0642ea6f2391374f3b2b479014e5bf0.tar.xz linux-b5db76dba0642ea6f2391374f3b2b479014e5bf0.zip |
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