diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-08-01 03:57:55 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-08-03 04:21:23 +0200 |
commit | a9c535270d1224ff0e23fa6657e52be4659cf1ff (patch) | |
tree | 100c6e2e7368226b1835385e6fda95cfd17116ac /netrom/netromt.c | |
parent | 2b87888e8428bd55e2b30533914f903782a0c27c (diff) |
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 <ralf@linux-mips.org>
Diffstat (limited to 'netrom/netromt.c')
-rw-r--r-- | netrom/netromt.c | 4 |
1 files changed, 2 insertions, 2 deletions
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, " ")); |