From 90b3b115e5ace1d414390526bb06b3109cfe8963 Mon Sep 17 00:00:00 2001 From: Roland Vossen Date: Fri, 16 Sep 2011 12:27:57 -0700 Subject: [PATCH] staging: brcm80211: removed set_fs/get_fs/get_ds calls from brcmf_dev_ioctl() brcmf_dev_ioctl() does not provide a user space buffer to brcmf_netdev_ioctl_priv. Hence these calls are not necessary. Reported-by: Johannes Berg Reviewed-by: Arend van Spriel Reviewed-by: Franky Lin Signed-off-by: Franky Lin Signed-off-by: Greg Kroah-Hartman --- drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c index 1f736ead1bda..c4a8117a557b 100644 --- a/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c @@ -251,7 +251,6 @@ static s32 brcmf_dev_ioctl(struct net_device *dev, u32 cmd, void *arg, u32 len) { struct brcmf_ioctl ioc; - mm_segment_t fs; s32 err = 0; memset(&ioc, 0, sizeof(ioc)); @@ -259,10 +258,7 @@ brcmf_dev_ioctl(struct net_device *dev, u32 cmd, void *arg, u32 len) ioc.buf = arg; ioc.len = len; - fs = get_fs(); - set_fs(get_ds()); err = brcmf_netdev_ioctl_priv(dev, &ioc); - set_fs(fs); return err; } -- 2.20.1