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
@@ -544,8 +544,8 @@ batadv_recv_handler_register(u8 packet_type,
|
||||
struct batadv_hard_iface *);
|
||||
curr = batadv_rx_handler[packet_type];
|
||||
|
||||
if ((curr != batadv_recv_unhandled_packet) &&
|
||||
(curr != batadv_recv_unhandled_unicast_packet))
|
||||
if (curr != batadv_recv_unhandled_packet &&
|
||||
curr != batadv_recv_unhandled_unicast_packet)
|
||||
return -EBUSY;
|
||||
|
||||
batadv_rx_handler[packet_type] = recv_handler;
|
||||
|
Reference in New Issue
Block a user