Bluetooth: Return proper error codes on rfcomm tty init
authorDavid Herrmann <dh.herrmann@googlemail.com>
Mon, 24 Oct 2011 13:30:57 +0000 (15:30 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Mon, 7 Nov 2011 19:24:39 +0000 (17:24 -0200)
commit5ada9913630d48438f2e07551af43cbf297372d4
treee8868bb9659794c935fa9d4bb85a0ea52a4b5e3b
parent42dceae2819b5ac6fc9a0d414ae05a8960e2a1d9
Bluetooth: Return proper error codes on rfcomm tty init

Forward error codes from tty core to the rfcomm_init caller instead of using
generic -1 errors.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/rfcomm/tty.c