diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-10-14 15:46:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-17 15:53:09 -0400 |
commit | 39bb93f88c5db54cbe1df0b0aa957b3a8f2227ed (patch) | |
tree | 19e5ac3622c2400847b6032d0a758e9d23241057 | |
parent | 9e5f1721907fcfbd4b575bcafa0314188f7330a5 (diff) | |
download | linux-39bb93f88c5db54cbe1df0b0aa957b3a8f2227ed.tar.gz linux-39bb93f88c5db54cbe1df0b0aa957b3a8f2227ed.tar.bz2 linux-39bb93f88c5db54cbe1df0b0aa957b3a8f2227ed.zip |
yam: remove a no-op in yam_ioctl()
We overwrite the ->bitrate with the user supplied information on the
next line.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/hamradio/yam.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c index 0721e72f9299..5af1c3e5032a 100644 --- a/drivers/net/hamradio/yam.c +++ b/drivers/net/hamradio/yam.c @@ -975,7 +975,6 @@ static int yam_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) return -EINVAL; /* Cannot change this parameter when up */ if ((ym = kmalloc(sizeof(struct yamdrv_ioctl_mcs), GFP_KERNEL)) == NULL) return -ENOBUFS; - ym->bitrate = 9600; if (copy_from_user(ym, ifr->ifr_data, sizeof(struct yamdrv_ioctl_mcs))) { kfree(ym); return -EFAULT; |