From: Zhibin Li Date: Sun, 30 Jun 2019 06:03:10 +0000 (+0800) Subject: ioctl: remove redundant _IOC_NR X-Git-Tag: v5.2~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cabf30c046528d9b3f28bfde6f4da6c6e20917fc;p=strace ioctl: remove redundant _IOC_NR * 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 --- diff --git a/ioctl.c b/ioctl.c index d3205b22..6a53d928 100644 --- 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;