batman-adv: only call post function if something changed
authorSimon Wunderlich <simon@open-mesh.com>
Tue, 17 Nov 2015 13:11:26 +0000 (14:11 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commit9e728e84389ba8317d1444bdf256e34ad467f3da
tree14e706b793e44254299e60df3c69390edf8fd301
parente1544f3c87778ab4af9689d571570d6abfd2f6c2
batman-adv: only call post function if something changed

Currently, the post function is also called on errors or if there were
no changes, which is redundant for the functions currently using these
facilities.

Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/sysfs.c