diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2017-08-27 00:18:27 +0200 |
---|---|---|
committer | Eugene Syromyatnikov <evgsyr@gmail.com> | 2017-08-28 02:33:20 +0200 |
commit | 3de6f8fe8aa146c0e3efafd28e826a450ffa1cef (patch) | |
tree | 93cb72b334d3b1052f8778de72cc5972714b0a9c /block.c | |
parent | 6e4aead09e44e3604244216edc435ca706a89792 (diff) | |
download | strace-3de6f8fe8aa146c0e3efafd28e826a450ffa1cef.tar.gz |
Return 0 instead of 1 on entering path of ioctl decoders
As returning 1 (without RVAL_DECODED) on entering makes no sense.
* block.c (block_ioctl) <case BLKTRACESETUP>: Replace return 1 with
return 0 on entering path.
* ptp.c (ptp_ioctl) <case PTP_SYS_OFFSET>: Likewise.
* sg_io_v3.c (decode_request): Likewise.
* sg_io_v4.c (decode_request): Likewise.
* sock.c (decode)ifconf, sock_ioctl) <case SIOCGIFMAP>: Likewise.
* ubi.c (ubi_ioctl) <case UBI_IOCMKVOL, case UBI_IOCATT>: Likewise.
* v4l2.c (print_v4l2_ext_controls): Likewise.
Co-authored-by: Dmitry V. Levin <ldv@altlinux.org>
Diffstat (limited to 'block.c')
-rw-r--r-- | block.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -244,7 +244,7 @@ MPERS_PRINTER_DECL(int, block_ioctl, struct tcb *const tcp, PRINT_FIELD_U(", ", buts, start_lba); PRINT_FIELD_U(", ", buts, end_lba); PRINT_FIELD_U(", ", buts, pid); - return 1; + return 0; } else { struct_blk_user_trace_setup buts; |