mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
staging: most: aim-network: avoid calling netdev_info()
This patch removes the needless call of function netdev_info() from function most_nd_setup(). Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de> Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
81ad520786
commit
812b55e531
1 changed files with 1 additions and 2 deletions
|
@ -211,7 +211,7 @@ static int most_nd_open(struct net_device *dev)
|
|||
|
||||
nd->iface->request_netinfo(nd->iface, nd->tx.ch_id);
|
||||
wait_res = wait_for_completion_interruptible_timeout(
|
||||
&nd->mac_compl, msecs_to_jiffies(5000));
|
||||
&nd->mac_compl, msecs_to_jiffies(5000));
|
||||
if (!wait_res) {
|
||||
netdev_err(dev, "mac timeout\n");
|
||||
return -EBUSY;
|
||||
|
@ -288,7 +288,6 @@ static const struct net_device_ops most_nd_ops = {
|
|||
|
||||
static void most_nd_setup(struct net_device *dev)
|
||||
{
|
||||
netdev_info(dev, "setup net device\n");
|
||||
ether_setup(dev);
|
||||
dev->netdev_ops = &most_nd_ops;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue