Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 224759
b: refs/heads/master
c: b924dcf
h: refs/heads/master
i:
  224757: b9625da
  224755: e2ac8b6
  224751: d9198b9
v: v3
  • Loading branch information
Allan Stephens authored and David S. Miller committed Dec 2, 2010
1 parent d475851 commit 4118034
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12bae479ee414f45ad8fe93530f5b6ea241bde3f
refs/heads/master: b924dcf0038b8f83e65b44f679ad480d44f85aa6
7 changes: 0 additions & 7 deletions trunk/net/tipc/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -983,13 +983,6 @@ int tipc_createport(u32 user_ref,
return 0;
}

int tipc_ownidentity(u32 ref, struct tipc_portid *id)
{
id->ref = ref;
id->node = tipc_own_addr;
return 0;
}

int tipc_portimportance(u32 ref, unsigned int *importance)
{
struct port *p_ptr;
Expand Down
2 changes: 0 additions & 2 deletions trunk/net/tipc/port.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ int tipc_createport(unsigned int tipc_user, void *usr_handle,

int tipc_deleteport(u32 portref);

int tipc_ownidentity(u32 portref, struct tipc_portid *port);

int tipc_portimportance(u32 portref, unsigned int *importance);
int tipc_set_portimportance(u32 portref, unsigned int importance);

Expand Down
3 changes: 2 additions & 1 deletion trunk/net/tipc/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ static int get_name(struct socket *sock, struct sockaddr *uaddr,
addr->addr.id.ref = tsock->peer_name.ref;
addr->addr.id.node = tsock->peer_name.node;
} else {
tipc_ownidentity(tsock->p->ref, &addr->addr.id);
addr->addr.id.ref = tsock->p->ref;
addr->addr.id.node = tipc_own_addr;
}

*uaddr_len = sizeof(*addr);
Expand Down

0 comments on commit 4118034

Please sign in to comment.