net: irda: irttp: sync error paths of data- and udata-requests
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 16 Nov 2010 09:40:02 +0000 (09:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Nov 2010 20:24:25 +0000 (12:24 -0800)
commit925e277f5221defdc53cbef1ac3ed1803fa32357
tree5d11dc5bf2e6ca2ef848a3722c9270e59e4def67
parent18a31e1e282f9ed563b131526a88162ccbe04ee3
net: irda: irttp: sync error paths of data- and udata-requests

irttp_data_request() returns meaningful errorcodes, while irttp_udata_request()
just returns -1 in similar situations. Sync the two and the loglevels of the
accompanying output.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irttp.c