commit | 7350e6cf360d32206cbe4e3d34fb48ab863bdb14 | [log] [tgz] |
---|---|---|
author | David Herrmann <dh.herrmann@gmail.com> | Sat Apr 06 20:28:49 2013 +0200 |
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | Wed Apr 17 03:04:03 2013 -0300 |
tree | 6ed42830673826c03e918ea8e85c5fc34e47bc0e | |
parent | 2df012001d36e56cd92dab0255cf4bce3f5b16bc [diff] |
Bluetooth: hidp: merge hidp_process_{ctrl,intr}_transmit() Both hidp_process_ctrl_transmit() and hidp_process_intr_transmit() are exactly the same apart from the transmit-queue and socket pointers. Therefore, pass them as argument and merge both functions into one so we avoid 25 lines of code-duplication. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>