summaryrefslogtreecommitdiff
path: root/ubi.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 /ubi.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 'ubi.c')
-rw-r--r--ubi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ubi.c b/ubi.c
index 9fa41e1c0..6611bd46c 100644
--- a/ubi.c
+++ b/ubi.c
@@ -67,7 +67,7 @@ ubi_ioctl(struct tcb *const tcp, const unsigned int code,
CLAMP(mkvol.name_len, 0,
UBI_MAX_VOLUME_NAME));
tprints("}");
- return 1;
+ return 0;
}
if (!syserror(tcp)) {
tprints(" => ");
@@ -135,7 +135,7 @@ ubi_ioctl(struct tcb *const tcp, const unsigned int code,
", max_beb_per1024=%" PRIi16 "}",
attach.ubi_num, attach.mtd_num,
attach.vid_hdr_offset, attach.max_beb_per1024);
- return 1;
+ return 0;
}
if (!syserror(tcp)) {
tprints(" => ");