summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/tb.c
diff options
context:
space:
mode:
authorMika Westerberg2017-06-06 14:24:59 +0200
committerGreg Kroah-Hartman2017-06-09 11:42:41 +0200
commitc9843ebbb83a120094aa3a55bc0190d285e8384a (patch)
treed296156a193479e70f2f14c366105c602c767f39 /drivers/thunderbolt/tb.c
parentthunderbolt: Rework capability handling (diff)
downloadkernel-qcow2-linux-c9843ebbb83a120094aa3a55bc0190d285e8384a.tar.gz
kernel-qcow2-linux-c9843ebbb83a120094aa3a55bc0190d285e8384a.tar.xz
kernel-qcow2-linux-c9843ebbb83a120094aa3a55bc0190d285e8384a.zip
thunderbolt: Allow passing NULL to tb_ctl_free()
Following the usual pattern used in many places, we allow passing NULL pointer to tb_ctl_free(). Then the user can call the function regardless if it has allocated control channel or not making the code bit simpler. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Andreas Noever <andreas.noever@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thunderbolt/tb.c')
0 files changed, 0 insertions, 0 deletions