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 /ubi.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 'ubi.c')
-rw-r--r-- | ubi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(" => "); |