Skip to content

Commit 0460303

Browse files
committed
mctpd: use boolean operator for bridge pool check
This shouldn't be a bitwise test. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
1 parent 9a13f15 commit 0460303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mctpd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1626,7 +1626,7 @@ static int add_peer(struct ctx *ctx, const dest_phys *dest, mctp_eid_t eid,
16261626
* interface will approve peer structure if eid belongs to a bridge
16271627
* pool space else never allow.
16281628
*/
1629-
if (!net_learn & is_eid_in_bridge_pool(n, ctx, eid))
1629+
if (!net_learn && is_eid_in_bridge_pool(n, ctx, eid))
16301630
return -EEXIST;
16311631

16321632
if (ctx->num_peers == MAX_PEER_SIZE)

0 commit comments

Comments
 (0)