[PATCH v3 07/27] thunderbolt: Allow passing NULL to tb_ctl_free()

2017-06-02 Thread Mika Westerberg
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 Signed-off-by:

[PATCH v3 07/27] thunderbolt: Allow passing NULL to tb_ctl_free()

2017-06-02 Thread Mika Westerberg
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 Signed-off-by: Mika Westerberg ---