Browse Source

staging: usbip: Remove double initialization of msg_namelen variable

This removes the double initialization of the msg_namelen variable.

Signed-off-by: Sankha Narayan Guria <sankha93@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Sankha Narayan Guria 11 years ago
parent
commit
b481c2cb35
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/staging/usbip/usbip_common.c

+ 0 - 1
drivers/staging/usbip/usbip_common.c

@@ -366,7 +366,6 @@ int usbip_recv(struct socket *sock, void *buf, int size)
 		msg.msg_namelen = 0;
 		msg.msg_namelen = 0;
 		msg.msg_control = NULL;
 		msg.msg_control = NULL;
 		msg.msg_controllen = 0;
 		msg.msg_controllen = 0;
-		msg.msg_namelen    = 0;
 		msg.msg_flags      = MSG_NOSIGNAL;
 		msg.msg_flags      = MSG_NOSIGNAL;
 
 
 		result = kernel_recvmsg(sock, &msg, &iov, 1, size, MSG_WAITALL);
 		result = kernel_recvmsg(sock, &msg, &iov, 1, size, MSG_WAITALL);