summaryrefslogtreecommitdiff
path: root/net/core/dev_ioctl.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-18 17:42:34 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-18 17:42:40 +0200
commit67ece13ffe862f9d17a144c6cd3feef88a57db13 (patch)
treeec2036681d19a9c10b2fad941eb8f58f9eafcfc8 /net/core/dev_ioctl.c
parentfa84cf094ef9667e2b91c104b0a788fd1896f482 (diff)
parent4aaf448fa9754e2d5ee188d32327b24ffc15ca4d (diff)
Merge branch 'topic/vga_switcheroo' into for-next
Pull the vga_switcheroo audio client fix. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'net/core/dev_ioctl.c')
-rw-r--r--net/core/dev_ioctl.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/net/core/dev_ioctl.c b/net/core/dev_ioctl.c
index a04e1e88bf3ab..50537ff961a72 100644
--- a/net/core/dev_ioctl.c
+++ b/net/core/dev_ioctl.c
@@ -285,16 +285,9 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
if (ifr->ifr_qlen < 0)
return -EINVAL;
if (dev->tx_queue_len ^ ifr->ifr_qlen) {
- unsigned int orig_len = dev->tx_queue_len;
-
- dev->tx_queue_len = ifr->ifr_qlen;
- err = call_netdevice_notifiers(
- NETDEV_CHANGE_TX_QUEUE_LEN, dev);
- err = notifier_to_errno(err);
- if (err) {
- dev->tx_queue_len = orig_len;
+ err = dev_change_tx_queue_len(dev, ifr->ifr_qlen);
+ if (err)
return err;
- }
}
return 0;