]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: don't switch byte order too often if not needed
authorAntonio Quartulli <antonio@open-mesh.com>
Sun, 13 Oct 2013 00:50:17 +0000 (02:50 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 8 Jan 2014 19:49:39 +0000 (20:49 +0100)
commite3445c87cd43bf3b2d4873c739c437b861cb9ecd
treeffa321077c017256351bf2c8342e80267382244b
parent36a60612567a2155d4fb743fbe1d95aa3f095ab9
batman-adv: don't switch byte order too often if not needed

If possible, operations like ntohs/ntohl should not be
performed too often. Use a variable to locally store the
converted value and then use it.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/routing.c