usb: xhci: use list_is_singular for cmd_list
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 23 Jan 2017 12:20:02 +0000 (14:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 09:57:35 +0000 (10:57 +0100)
commitdaa47f2132dce31fcab7c6ebdcb957e598c768f2
tree7180d6ac32288445ae96d677759a65d49048a76b
parentfb79a6da459b20554151eed84c991cd9bd35ff15
usb: xhci: use list_is_singular for cmd_list

Use list_is_singular() to check if cmd_list has only one entry.

[use list_empty() in queue command instead -Mathias]
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c