Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit becf3da2 authored by Al Viro's avatar Al Viro Committed by David S. Miller
Browse files

tipc: endianness annotations

parent ec6b486f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -70,10 +70,9 @@ static inline void msg_set_bits(struct tipc_msg *m, u32 w,
				u32 pos, u32 mask, u32 val)
{
	val = (val & mask) << pos;
	val = htonl(val);
	mask = htonl(mask << pos);
	m->hdr[w] &= ~mask;
	m->hdr[w] |= val;
	mask = mask << pos;
	m->hdr[w] &= ~htonl(mask);
	m->hdr[w] |= htonl(val);
}

/*