Skip to contentSkip to conversation

staging: lustre: remove unused variables

PATCH In review Emil Goode 2 participants 2 messages May 6, 2014

Subsystems (2)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH 1/1 staging: lustre: remove unused variables

The following commit left some unused variables behind.

commit 80db2734acbc78db12798cfb611d6acc7fe389e6

Author: Fredrick John Berchmans <[email protected]>
Date:   Fri May 2 19:50:15 2014 -0700

staging: lustre use kernel socket sockopt apis

---
 drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c |    2 --
 1 file changed, 2 deletions(-)
drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c +0 -2
index 4153b4a..ac3a444 100644
@@ -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) {
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 29 lines · Emil Goode

The following commit left some unused variables behind.

commit 80db2734acbc78db12798cfb611d6acc7fe389e6

Author: Fredrick John Berchmans <[email protected]>
Date:   Fri May 2 19:50:15 2014 -0700

staging: lustre use kernel socket sockopt apis

---
 drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c |    2 --
 1 file changed, 2 deletions(-)
drivers/staging/lustre/lustre/libcfs/linux/linux-tcpip.c +0 -3
index 4153b4a..ac3a444 100644
@@ -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) {
--
Quoted 2 lines

1.7.10.4

Hi Emil,

I have already submitted a patch for this.

Thanks,
Fredrick