]> granicus.if.org Git - strace/commit
v4l2: streamline logic
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sat, 26 Aug 2017 23:12:08 +0000 (01:12 +0200)
committerEugene Syromyatnikov <evgsyr@gmail.com>
Mon, 28 Aug 2017 00:33:20 +0000 (02:33 +0200)
commit6e367ed223693cead1c1ea8205addbf08c7dc71e
treed521d96c2124bdac1d73135ed65d6ca890448e2c
parent8c29b65f7120c1c8f0aa3dc1f8afca1f8d6b487b
v4l2: streamline logic

Move exiting path out of if (entering(tcp)) { ... return 0; } else,
provide common exit point in v4l2_ioctl handler, use break instead of
return in specific command handlers.

* v4l2.c (print_v4l2_format, print_v4l2_buffer, print_v4l2_standard,
print_v4l2_input, print_v4l2_frmivalenum): Move exiting path out of else
par of the entering(tcp) condition.
(v4l2_ioctl): Add return RVAL_DECODED | 1 at the end of function.
(v4l2_ioctl) <case VIDIOC_S_STD, case VIDIOC_S_INPUT>: Replace return
with break.
v4l2.c