]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Less checks in batadv_tvlv_unicast_send()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 15 Nov 2015 08:00:42 +0000 (09:00 +0100)
committerAntonio Quartulli <a@unstable.cc>
Sat, 9 Jan 2016 12:56:00 +0000 (20:56 +0800)
commit902adb2571f59ce2e36803c18ca04e276e630c96
treeb2b2a765d58740bd228057a541d0b35ec3fa1b6e
parent2515a35935231b304b8172014ac52ad47c26a3ae
batman-adv: Less checks in batadv_tvlv_unicast_send()

* Let us return directly if a call of the batadv_orig_hash_find() function
  returned a null pointer.

* Omit the initialisation for the variable "skb" at the beginning.

* Replace an assignment by a call of the kfree_skb() function
  and delete the affected variable "ret" then.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/main.c