From a9c535270d1224ff0e23fa6657e52be4659cf1ff Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 1 Aug 2017 03:57:55 +0200 Subject: treewide: Remove useless casts of function return value to void. Arguably useful in documenting the return value is intentionally ignored I think it's just cluttering the screen. This is using the following semantic patch: @castvoid@ expression F; @@ - (void) F + F (...) Signed-off-by: Ralf Baechle --- netrom/netromt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'netrom/netromt.c') diff --git a/netrom/netromt.c b/netrom/netromt.c index 4c98f43..3addc4d 100644 --- a/netrom/netromt.c +++ b/netrom/netromt.c @@ -127,8 +127,8 @@ static void build_others(int s, int min_obs, struct full_sockaddr_ax25 *dest, in while (fgets(nodes_buffer, 90, fpnodes) != NULL) { callsign = strtok(nodes_buffer, " "); mnemonic = strtok(NULL, " "); - (void) strtok(NULL, " "); /* skip which field */ - (void) strtok(NULL, " "); /* skip number field */ + strtok(NULL, " "); /* skip which field */ + strtok(NULL, " "); /* skip number field */ quality = atoi(strtok(NULL, " ")); obs_count = atoi(strtok(NULL, " ")); neigh_no = atoi(strtok(NULL, " ")); -- cgit v1.2.3