batman-adv: Remove unnecessary parentheses
checkpatch introduced with commit 63b7c73ec8
("checkpatch: add --strict
check for ifs with unnecessary parentheses") an additional test which
identifies some unnecessary parentheses.
Remove these unnecessary parentheses to avoid the warnings and to unify the
coding style slightly more.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
This commit is contained in:

committed by
Simon Wunderlich

parent
7e7c1afb67
commit
825ffe1f7b
@@ -132,10 +132,10 @@ static ssize_t batadv_socket_read(struct file *file, char __user *buf,
|
||||
size_t packet_len;
|
||||
int error;
|
||||
|
||||
if ((file->f_flags & O_NONBLOCK) && (socket_client->queue_len == 0))
|
||||
if ((file->f_flags & O_NONBLOCK) && socket_client->queue_len == 0)
|
||||
return -EAGAIN;
|
||||
|
||||
if ((!buf) || (count < sizeof(struct batadv_icmp_packet)))
|
||||
if (!buf || count < sizeof(struct batadv_icmp_packet))
|
||||
return -EINVAL;
|
||||
|
||||
if (!access_ok(VERIFY_WRITE, buf, count))
|
||||
|
Reference in New Issue
Block a user