]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: Refactor endpoint limit checking.
authorSarah Sharp <sarah.a.sharp@linux.intel.com>
Fri, 2 Sep 2011 18:05:43 +0000 (11:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Sep 2011 22:52:53 +0000 (15:52 -0700)
commit3ea7c670886a5dec80a43ffd0cc5362abfbec69a
treec7fa8c9f5ec211012a7151384a5b8f4f8aaf8260
parent3585ee488574b3e76855e36c5432bfd5c52a5a64
xhci: Refactor endpoint limit checking.

Move the code to check whether we've reached the host controller's limit
on the number of endpoints out of the two conditional statements, to
remove duplicate code.

Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci.c