summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2017-08-27 00:18:27 +0200
committerEugene Syromyatnikov <evgsyr@gmail.com>2017-08-28 02:33:20 +0200
commit3de6f8fe8aa146c0e3efafd28e826a450ffa1cef (patch)
tree93cb72b334d3b1052f8778de72cc5972714b0a9c /block.c
parent6e4aead09e44e3604244216edc435ca706a89792 (diff)
downloadstrace-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block.c b/block.c
index 99b76dac7..486c6df01 100644
--- a/block.c
+++ b/block.c
@@ -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;