summaryrefslogtreecommitdiffstats
path: root/ax25/axgetput
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 02:20:15 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:12:26 +0200
commit1c830798fe54268cc0f9585b5940bea47fa8eb8a (patch)
treefe35fdea7e487d5b7a173f1b958d7e9fbd9d5b84 /ax25/axgetput
parent90f6ab2eceada8987fc6e5017ae415eade165c00 (diff)
Remove parenthesis around arguments of return statements.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25/axgetput')
-rw-r--r--ax25/axgetput/proto_bin.c2
-rw-r--r--ax25/axgetput/util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c
index 9be7a58..b3e3420 100644
--- a/ax25/axgetput/proto_bin.c
+++ b/ax25/axgetput/proto_bin.c
@@ -38,7 +38,7 @@ static int init_crc(void)
static int do_crc(char b, int n, unsigned int crc)
{
crc = (crctab[(crc >> 8)] ^ ((crc << 8) | (b & 0xff))) & 0xffff;
- return (crc);
+ return crc;
}
/*---------------------------------------------------------------------------*/
diff --git a/ax25/axgetput/util.c b/ax25/axgetput/util.c
index f20937f..5501035 100644
--- a/ax25/axgetput/util.c
+++ b/ax25/axgetput/util.c
@@ -62,7 +62,7 @@ int my_read(int fd, char *s, int len_max, int *eof, char *p_break)
* len = 0: normal eof. if we're looking for a string, return -1 since
* we have'nt found
*/
- return (len == 0 && p_break ? -1 : (len_got ? len_got : len));
+ return len == 0 && p_break ? -1 : (len_got ? len_got : len);
}
len_got += len;