summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/tb_msgs.h
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2019-10-08 19:03:34 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2019-11-01 14:32:00 +0300
commitb5db76dba0642ea6f2391374f3b2b479014e5bf0 (patch)
tree1a8f681791bfc0661450d548ff16b0f7194d5bbe /drivers/thunderbolt/tb_msgs.h
parentb433d0100562233b21beb13c0139feeff350bc68 (diff)
downloadlinux-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_msgs.h')
0 files changed, 0 insertions, 0 deletions