]> git.baikalelectronics.ru Git - kernel.git/commit
mISDN: l1oip_core: replace _manual_ swap with swap macro
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 3 Nov 2017 16:52:45 +0000 (11:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Nov 2017 13:24:15 +0000 (22:24 +0900)
commit45811d4e22a1557cbf1bf1125e245e17cc702690
tree54ff3a1ec770b8913db4c8571ba91b93ba5ca4e4
parente6cbcf9cfa688f2762aafeb77ecac0cf65cbddb3
mISDN: l1oip_core: replace _manual_ swap with swap macro

Make use of the swap macro and remove unnecessary variables skb and cnt.
This makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/l1oip_core.c