Skip to content

Commit

Permalink
[PACKET]: Kill unused pg_vec_endpage() function
Browse files Browse the repository at this point in the history
The conversion to vm_insert_page() left this unused function behind,
remove it.

Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
kaber authored and davem330 committed Oct 19, 2007
1 parent 7018065 commit be702d5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/packet/af_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1623,11 +1623,6 @@ static struct vm_operations_struct packet_mmap_ops = {
.close =packet_mm_close,
};

static inline struct page *pg_vec_endpage(char *one_pg_vec, unsigned int order)
{
return virt_to_page(one_pg_vec + (PAGE_SIZE << order) - 1);
}

static void free_pg_vec(char **pg_vec, unsigned int order, unsigned int len)
{
int i;
Expand Down

0 comments on commit be702d5

Please sign in to comment.