af_iucv: Fix merge.
authorUrsula Braun <ubraun@linux.vnet.ibm.com>
Thu, 23 Apr 2009 13:37:16 +0000 (06:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2009 13:37:16 +0000 (06:37 -0700)
From: Ursula Braun <ubraun@linux.vnet.ibm.com>

net/iucv/af_iucv.c in net-next-2.6 is almost correct. 4 lines should
still be deleted. These are the remaining changes:

Signed-off-by: David S. Miller <davem@davemloft.net>
net/iucv/af_iucv.c

index 0fc00087ea8b14f4a8d2d98b40dc0ba4a6b57b62..a9b3a6f9ea95f18f2ea8325a72741fb61e0c14cf 100644 (file)
@@ -982,8 +982,6 @@ static int iucv_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
        if (flags & (MSG_OOB))
                return -EOPNOTSUPP;
 
-       target = sock_rcvlowat(sk, flags & MSG_WAITALL, len);
-
        /* receive/dequeue next skb:
         * the function understands MSG_PEEK and, thus, does not dequeue skb */
        skb = skb_recv_datagram(sk, flags, noblock, &err);
@@ -1429,8 +1427,6 @@ static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg)
        iucv_process_message(sk, skb, path, msg);
        goto out_unlock;
 
-       return;
-
 save_message:
        save_msg = kzalloc(sizeof(struct sock_msg_q), GFP_ATOMIC | GFP_DMA);
        if (!save_msg)