From cabf30c046528d9b3f28bfde6f4da6c6e20917fc Mon Sep 17 00:00:00 2001 From: Zhibin Li Date: Sun, 30 Jun 2019 14:03:10 +0800 Subject: [PATCH] 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 --- ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0