diff options
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/subscr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c index a62e5d30638c..dde23f1e7542 100644 --- a/net/tipc/subscr.c +++ b/net/tipc/subscr.c | |||
@@ -86,9 +86,7 @@ static struct top_srv topsrv = { 0 }; | |||
86 | 86 | ||
87 | static u32 htohl(u32 in, int swap) | 87 | static u32 htohl(u32 in, int swap) |
88 | { | 88 | { |
89 | char *c = (char *)∈ | 89 | return swap ? (u32)___constant_swab32(in) : in; |
90 | |||
91 | return swap ? ((c[3] << 3) + (c[2] << 2) + (c[1] << 1) + c[0]) : in; | ||
92 | } | 90 | } |
93 | 91 | ||
94 | /** | 92 | /** |