libqmi: file_open: fail if qmidev_set_dev_fd fails

We accidentally weren't checking the return value of qmidev_set_dev_fs.
It turns out that you can't add /dev/null to an epoll, but this tripped
an assert failure because we eventually called qmidev_clear_dev_fd without
having set the fd successfully.  With this patch, dev_open fails as it
should.

BUG=None
TEST=new version of qmidev_unittest fails better

Change-Id: Ic5746c976a3f74cb264c06a43a8846f97fd20219
1 file changed
tree: 89bd016e75caec115583f6e09bba55f3eb9adabd
  1. LICENSE
  2. Makefile
  3. README
  4. include/
  5. src/