xhci: refactor TRB_DISABLE_SLOT case into function
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 9 Sep 2013 10:29:48 +0000 (13:29 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 16 Oct 2013 19:24:26 +0000 (12:24 -0700)
commit6c02dd147a7a3dbbfc7451abbf58b3b2a2a5483d
treeecc8e88170d681f450c086558b82137a912ccdc8
parentb244b431f89e152dd4bf35d71786f1c0eb8cba7e
xhci: refactor TRB_DISABLE_SLOT case into function

The function that handles xHCI command completion is much too long and
there is need to be broken up into individual functions for each command
completion to improve code readablity.
This patch refactors the code in TRB_DISABLE_SLOT switch case in
handle_cmd_completion() into a fuction named xhci_handle_cmd_disable_slot().

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-ring.c