xhci: Use ilog2() rather than __ffs() for calculating SEGMENT_SHIFT
authorDavid Howells <dhowells@redhat.com>
Thu, 28 Mar 2013 18:48:28 +0000 (18:48 +0000)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Wed, 3 Apr 2013 17:28:31 +0000 (10:28 -0700)
Use ilog2() rather than __ffs() for calculating SEGMENT_SHIFT as ilog2() can
be worked out at compile time, whereas __ffs() must be calculated at runtime.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: linux-usb@vger.kernel.org
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>

No differences found