aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFredrick John Berchmans <fredrickprashanth@gmail.com>2014-05-03 21:42:14 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-16 16:10:41 -0700
commit7f03de97b6f14e6548593425a5d9adc09260f32b (patch)
treece48e32a396fb202e51da6df57a56cc7c0e604bf
parentstaging: lustre: return -EFAULT instead of bytes remaining (diff)
downloadlinux-dev-7f03de97b6f14e6548593425a5d9adc09260f32b.tar.xz
linux-dev-7f03de97b6f14e6548593425a5d9adc09260f32b.zip
staging: lustre: fix unused variable warnings
Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: Fredrick John Berchmans <fredrickprashanth@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c b/drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c
index 4153b4a61396..ac3a444a918d 100644
--- a/drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c
+++ b/drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c
@@ -46,10 +46,8 @@
int
libcfs_sock_ioctl(int cmd, unsigned long arg)
{
- mm_segment_t oldmm = get_fs();
struct socket *sock;
int rc;
- struct file *sock_filp;
rc = sock_create (PF_INET, SOCK_STREAM, 0, &sock);
if (rc != 0) {