diff options
author | David S. Miller <davem@davemloft.net> | 2011-06-07 01:41:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-06-07 01:41:33 +0200 |
commit | 3019de124b9f5b1526cb3668b74af14371e21795 (patch) | |
tree | 3b4fd5843b61f3a860824ec38827cf0256620eed /net/irda | |
parent | net/ipv6: check for mistakenly passed in non-AF_INET6 sockaddrs (diff) | |
download | linux-3019de124b9f5b1526cb3668b74af14371e21795.tar.xz linux-3019de124b9f5b1526cb3668b74af14371e21795.zip |
net: Rework netdev_drivername() to avoid warning.
This interface uses a temporary buffer, but for no real reason.
And now can generate warnings like:
net/sched/sch_generic.c: In function dev_watchdog
net/sched/sch_generic.c:254:10: warning: unused variable drivername
Just return driver->name directly or "".
Reported-by: Connor Hansen <cmdkhh@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/irda')
0 files changed, 0 insertions, 0 deletions