OSDN Git Service

net/af_iucv: remove a redundant zero initialization
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 19 May 2020 19:10:11 +0000 (21:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 May 2020 19:50:14 +0000 (12:50 -0700)
txmsg is declared as {0}, no need to clear individual fields later on.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c

index b02470a..799dcf5 100644 (file)
@@ -996,7 +996,6 @@ static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg,
 
        /* initialize defaults */
        cmsg_done   = 0;        /* check for duplicate headers */
-       txmsg.class = 0;
 
        /* iterate over control messages */
        for_each_cmsghdr(cmsg, msg) {