diff options
author | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-06-01 14:55:02 +0300 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@linux.intel.com> | 2014-06-24 13:29:39 +0300 |
commit | 15ae55ed9b89f997930e5bf7e7cde9c3d068190b (patch) | |
tree | d83eb18488febe7fd7324602e475ecb98d3381d6 /po/LINGUAS | |
parent | 59a8618dcd9128334f31bc5d68c24203f86d5b5e (diff) |
bluetooth: Refactor POLLHUP handling
The code in the "io_fail" section was only used for HUP handling, but
there were jumps to there also from places where reading or writing
failed, because the read/write failure could have been caused by HUP.
This patch simplifies things by checking for HUP condition before
trying to read or write. Now if reading or writing fails, we will
jump to "fail" directly instead of going via the "io_fail" label. As
a result, the "io_fail" label isn't needed any more.
Diffstat (limited to 'po/LINGUAS')
0 files changed, 0 insertions, 0 deletions