From: Dan Carpenter Date: Mon, 14 Oct 2013 12:46:15 +0000 (+0300) Subject: yam: remove a no-op in yam_ioctl() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=39bb93f88c5db54cbe1df0b0aa957b3a8f2227ed;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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;