core: drop unnecessary checks
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 2 Oct 2017 14:34:05 +0000 (16:34 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 2 Oct 2017 14:36:07 +0000 (16:36 +0200)
commita85817580192a85e942d651941a655017447c426
treec652480c98dc1d904a01ccf9db1c93737cfae4fc
parent404968c9f51f229d3b99bbcbf2d1caf8177c5490
core: drop unnecessary checks

The getter functions retrieving the file descriptors (both for events
and line values) check the line state internally but we don't check
their return values and just pass them on to ioctl()s. Drop the checks
altogether.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/lib/core.c