Rasmus Villemoes 6224abda0d net: core: drop pointless check in __dev_alloc_name
The only caller passes a stack buffer as buf, so it won't equal the
passed-in name. Moreover, we're already using buf as a scratch buffer
inside the if (p) {} block, so if buf and name were the same, that
snprintf() call would be overwriting its own format string.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-14 16:38:46 +09:00
..
2017-11-14 11:11:45 +09:00
2017-11-01 12:19:03 +09:00
2017-11-14 15:45:53 +09:00
2017-11-08 16:12:33 +09:00
2017-11-14 16:17:38 +09:00
2017-08-16 11:27:52 -07:00