From 3ee1ebc7eebcbde2c47c4a92d9a400b172f32d91 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:07:11 +0200 Subject: treewide: Remove useless casts from memcpy pointer arguments. This is using the following semantic patch: @memcpy1@ type T; expression A, B, C; @@ - memcpy((T *)A, B, C) + memcpy(A, B, C) @memcpy2@ type T; expression A, B, C; @@ - memcpy(A, (T *)B, C) + memcpy(A, B, C) Signed-off-by: Ralf Baechle --- tcpip/rip98d.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tcpip/rip98d.c') diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c index b375d70..1fcc46c 100644 --- a/tcpip/rip98d.c +++ b/tcpip/rip98d.c @@ -173,7 +173,8 @@ static int load_dests(void) return FALSE; } - memcpy((char *)&dest_list[dest_count].dest_addr, host->h_addr, host->h_length); + memcpy(&dest_list[dest_count].dest_addr, host->h_addr, + host->h_length); dest_count++; } -- cgit v1.2.3