OSDN Git Service

USB: EHCI: use consistent NO_FRAME value
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 11 Oct 2013 15:28:52 +0000 (11:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Oct 2013 23:40:26 +0000 (16:40 -0700)
commit91a99b5e78849db90dc2f5e8dfa034af43bdb760
tree27af7c91347333591d6e47e043072400ea55f74b
parent27c4a31d6739095d613c6e72fb44867bc28c699f
USB: EHCI: use consistent NO_FRAME value

ehci-hcd is inconsistent in the sentinel values it uses to indicate
that no frame number has been assigned for a periodic transfer.  Some
places it uses NO_FRAME (defined as 65535), other places it uses -1,
and elsewhere it uses 9999.

This patch defines a value for NO_FRAME which can fit in a 16-bit
signed integer, and changes the code to use it everywhere.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-sched.c
drivers/usb/host/ehci.h