summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98d.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-08-01 03:07:11 +0200
committerRalf Baechle <ralf@linux-mips.org>2017-08-03 04:21:23 +0200
commit3ee1ebc7eebcbde2c47c4a92d9a400b172f32d91 (patch)
treeeac81848fb4e5327e5892cb33fd3493ebeaff4d1 /tcpip/rip98d.c
parent4ae678eaf8a48d548308a57e23df38c7afca8a0e (diff)
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 <ralf@linux-mips.org>
Diffstat (limited to 'tcpip/rip98d.c')
-rw-r--r--tcpip/rip98d.c3
1 files changed, 2 insertions, 1 deletions
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++;
}