Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: nvec: remove NVEC_PS2_DEBUG and dead debug macro

The NVEC_PS2_DEBUG macro and NVEC_PHD() are unused and only add clutter.
Remove them completely.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Emre Cecanpunar <emreleno@gmail.com>
Link: https://patch.msgid.link/20251019095057.5684-1-emreleno@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Emre Cecanpunar and committed by
Greg Kroah-Hartman
ea629075 b8b4b51b

-12
-12
drivers/staging/nvec/nvec_ps2.c
··· 23 23 #define DISABLE_MOUSE 0xf5 24 24 #define PSMOUSE_RST 0xff 25 25 26 - #ifdef NVEC_PS2_DEBUG 27 - #define NVEC_PHD(str, buf, len) \ 28 - print_hex_dump(KERN_DEBUG, str, DUMP_PREFIX_NONE, \ 29 - 16, 1, buf, len, false) 30 - #else 31 - #define NVEC_PHD(str, buf, len) do { } while (0) 32 - #endif 33 - 34 26 enum ps2_subcmds { 35 27 SEND_COMMAND = 1, 36 28 RECEIVE_N, ··· 62 70 case NVEC_PS2_EVT: 63 71 for (i = 0; i < msg[1]; i++) 64 72 serio_interrupt(ps2_dev.ser_dev, msg[2 + i], 0); 65 - NVEC_PHD("ps/2 mouse event: ", &msg[2], msg[1]); 66 73 return NOTIFY_STOP; 67 74 68 75 case NVEC_PS2: 69 76 if (msg[2] == 1) { 70 77 for (i = 0; i < (msg[1] - 2); i++) 71 78 serio_interrupt(ps2_dev.ser_dev, msg[i + 4], 0); 72 - NVEC_PHD("ps/2 mouse reply: ", &msg[4], msg[1] - 2); 73 79 } 74 80 75 - else if (msg[1] != 2) /* !ack */ 76 - NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2); 77 81 return NOTIFY_STOP; 78 82 } 79 83