Skip to content

Commit

Permalink
net/hyperv: Fix long lines in netvsc.c
Browse files Browse the repository at this point in the history
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Haiyang Zhang authored and Greg Kroah-Hartman committed Dec 1, 2011
1 parent 4bd8b4d commit c181320
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/hyperv/netvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,11 @@ static int netvsc_init_recv_buf(struct hv_device *device)
net_device->recv_section_cnt = init_packet->msg.
v1_msg.send_recv_buf_complete.num_sections;

net_device->recv_section = kmemdup(init_packet->msg.v1_msg.send_recv_buf_complete.sections,
net_device->recv_section_cnt * sizeof(struct nvsp_1_receive_buffer_section),
GFP_KERNEL);
net_device->recv_section = kmemdup(
init_packet->msg.v1_msg.send_recv_buf_complete.sections,
net_device->recv_section_cnt *
sizeof(struct nvsp_1_receive_buffer_section),
GFP_KERNEL);
if (net_device->recv_section == NULL) {
ret = -EINVAL;
goto cleanup;
Expand Down

0 comments on commit c181320

Please sign in to comment.