]> granicus.if.org Git - strace/commitdiff
ioctl: remove redundant _IOC_NR
authorZhibin Li <haoyouab@gmail.com>
Sun, 30 Jun 2019 06:03:10 +0000 (14:03 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 3 Jul 2019 18:56:13 +0000 (18:56 +0000)
* ioctl.c (evdev_decode_number): Replace _IOC_NR(nr) with nr
as the latter is defined to _IOC_NR(code).

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
ioctl.c

diff --git a/ioctl.c b/ioctl.c
index d3205b22936756c1518ee7a4fa9c34da0b4c8f19..6a53d9282ed6936d8bea349da6a1ca80e021feea 100644 (file)
--- a/ioctl.c
+++ b/ioctl.c
@@ -91,7 +91,7 @@ evdev_decode_number(const unsigned int code)
                return 1;
        }
 
-       switch (_IOC_NR(nr)) {
+       switch (nr) {
                case 0x06:
                        tprintf("EVIOCGNAME(%u)", _IOC_SIZE(code));
                        return 1;