]> git.baikalelectronics.ru Git - kernel.git/commit
RxRPC: Don't call skb_add_data() if there's no data to copy
authorDavid Howells <dhowells@redhat.com>
Wed, 1 Apr 2015 14:48:00 +0000 (15:48 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 Apr 2015 14:48:00 +0000 (15:48 +0100)
commitd4babdafa336e3f3edc5366beb51db1cfbeda682
treeff11c65eb69d92afe9ac4f265be9c6f64cb864fc
parentffa2fd24fe8a4e0d4c297eb3052c14e36b18548c
RxRPC: Don't call skb_add_data() if there's no data to copy

Don't call skb_add_data() in rxrpc_send_data() if there's no data to copy and
also skip the calculations associated with it in such a case.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-output.c