staging: usbip: Remove double initialization of msg_namelen variable
authorSankha Narayan Guria <sankha93@gmail.com>
Mon, 16 Dec 2013 06:25:43 +0000 (11:55 +0530)
committerJiri Kosina <jkosina@suse.cz>
Mon, 16 Dec 2013 12:20:39 +0000 (13:20 +0100)
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>
drivers/staging/usbip/usbip_common.c

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