From 5e1dd90d814c46ad3ef41053cf7ca3bac6c80466 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:09:11 +0200 Subject: treewide: Remove useless casts from memset pointer argument. This is using the following semantic patch: @memset@ type T; expression A, B, C; @@ - memset((T *)A, B, C) + memset(A, B, C) Signed-off-by: Ralf Baechle --- ax25/axgetput/axgetput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ax25/axgetput/axgetput.c') diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c index 1e2a48c..e3a0c71 100644 --- a/ax25/axgetput/axgetput.c +++ b/ax25/axgetput/axgetput.c @@ -71,7 +71,7 @@ static void set_tty_flags(void) /* make tty 8bit clean */ if (tcgetattr(fdin, &prev_termios) != -1) prev_termios_stored = 1; - memset((char *) &termios, 0, sizeof(termios)); + memset(&termios, 0, sizeof(termios)); termios.c_iflag = IGNBRK | IGNPAR; termios.c_oflag = 0; termios.c_cflag = CBAUD | CS8 | CREAD | CLOCAL; -- cgit v1.2.3