USB: fix create_pipe()
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Wed, 26 May 2010 17:26:43 +0000 (21:26 +0400)
committerRemy Bohmer <linux@bohmer.net>
Thu, 27 May 2010 18:59:48 +0000 (20:59 +0200)
commitd0fe1128c4451327b9cb0fac1a76efd194b078b5
treed582cdd84bf9fcb4887074b1cd04d02a11a52a97
parent01f03bda5b22e5aeae5f02fd537da97a41485c73
USB: fix create_pipe()

create_pipe() can give wrong result if an expression is passed as the 'endpoint'
argument -- due to missing parentheses.

Thanks to Martin Mueller for finding the bug and providing the patch.

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
include/usb.h