]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: don't use !! in bool conversion
authorAntonio Quartulli <ordex@autistici.org>
Tue, 15 Jan 2013 12:17:19 +0000 (22:17 +1000)
committerAntonio Quartulli <ordex@autistici.org>
Wed, 13 Mar 2013 21:53:48 +0000 (22:53 +0100)
commitd9906627bca44b810d73e91bba7df6cb973a44c9
treef50b0439743d4c59e030902e2f5a4d8c4e198ba0
parent00edac8c63434d6a7ec0a723de449c871d65e964
batman-adv: don't use !! in bool conversion

In C standard any expression different from 0 will be converted to
'true' when casting to bool (whatever is the length of the value).
Therefore all the "!!" conversions can be removed.

Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c
net/batman-adv/unicast.c