Skip to content

Commit ea62907

Browse files
emomaxdgregkh
authored andcommitted
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>
1 parent b8b4b51 commit ea62907

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

drivers/staging/nvec/nvec_ps2.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@
2323
#define DISABLE_MOUSE 0xf5
2424
#define PSMOUSE_RST 0xff
2525

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-
3426
enum ps2_subcmds {
3527
SEND_COMMAND = 1,
3628
RECEIVE_N,
@@ -70,18 +62,14 @@ static int nvec_ps2_notifier(struct notifier_block *nb,
7062
case NVEC_PS2_EVT:
7163
for (i = 0; i < msg[1]; i++)
7264
serio_interrupt(ps2_dev.ser_dev, msg[2 + i], 0);
73-
NVEC_PHD("ps/2 mouse event: ", &msg[2], msg[1]);
7465
return NOTIFY_STOP;
7566

7667
case NVEC_PS2:
7768
if (msg[2] == 1) {
7869
for (i = 0; i < (msg[1] - 2); i++)
7970
serio_interrupt(ps2_dev.ser_dev, msg[i + 4], 0);
80-
NVEC_PHD("ps/2 mouse reply: ", &msg[4], msg[1] - 2);
8171
}
8272

83-
else if (msg[1] != 2) /* !ack */
84-
NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2);
8573
return NOTIFY_STOP;
8674
}
8775

0 commit comments

Comments
 (0)