mirror of https://github.com/torvalds/linux.git
dlm: remove unused parameter in dlm_midcomms_addr
This patch removes an parameter which is currently not used by dlm_midcomms_addr(). Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
a2155402bf
commit
f49da8c09f
|
|
@ -672,7 +672,7 @@ static ssize_t comm_addr_store(struct config_item *item, const char *buf,
|
||||||
|
|
||||||
memcpy(addr, buf, len);
|
memcpy(addr, buf, len);
|
||||||
|
|
||||||
rv = dlm_midcomms_addr(cm->nodeid, addr, len);
|
rv = dlm_midcomms_addr(cm->nodeid, addr);
|
||||||
if (rv) {
|
if (rv) {
|
||||||
kfree(addr);
|
kfree(addr);
|
||||||
return rv;
|
return rv;
|
||||||
|
|
|
||||||
|
|
@ -461,7 +461,7 @@ static bool dlm_lowcomms_con_has_addr(const struct connection *con,
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len)
|
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr)
|
||||||
{
|
{
|
||||||
struct connection *con;
|
struct connection *con;
|
||||||
bool ret, idx;
|
bool ret, idx;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ void dlm_lowcomms_put_msg(struct dlm_msg *msg);
|
||||||
int dlm_lowcomms_resend_msg(struct dlm_msg *msg);
|
int dlm_lowcomms_resend_msg(struct dlm_msg *msg);
|
||||||
int dlm_lowcomms_connect_node(int nodeid);
|
int dlm_lowcomms_connect_node(int nodeid);
|
||||||
int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark);
|
int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark);
|
||||||
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
|
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr);
|
||||||
void dlm_midcomms_receive_done(int nodeid);
|
void dlm_midcomms_receive_done(int nodeid);
|
||||||
struct kmem_cache *dlm_lowcomms_writequeue_cache_create(void);
|
struct kmem_cache *dlm_lowcomms_writequeue_cache_create(void);
|
||||||
struct kmem_cache *dlm_lowcomms_msg_cache_create(void);
|
struct kmem_cache *dlm_lowcomms_msg_cache_create(void);
|
||||||
|
|
|
||||||
|
|
@ -334,12 +334,12 @@ static struct midcomms_node *nodeid2node(int nodeid)
|
||||||
return __find_node(nodeid, nodeid_hash(nodeid));
|
return __find_node(nodeid, nodeid_hash(nodeid));
|
||||||
}
|
}
|
||||||
|
|
||||||
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len)
|
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr)
|
||||||
{
|
{
|
||||||
int ret, idx, r = nodeid_hash(nodeid);
|
int ret, idx, r = nodeid_hash(nodeid);
|
||||||
struct midcomms_node *node;
|
struct midcomms_node *node;
|
||||||
|
|
||||||
ret = dlm_lowcomms_addr(nodeid, addr, len);
|
ret = dlm_lowcomms_addr(nodeid, addr);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
|
||||||
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, char **ppc);
|
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, char **ppc);
|
||||||
void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
|
void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
|
||||||
int namelen);
|
int namelen);
|
||||||
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
|
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr);
|
||||||
void dlm_midcomms_version_wait(void);
|
void dlm_midcomms_version_wait(void);
|
||||||
int dlm_midcomms_close(int nodeid);
|
int dlm_midcomms_close(int nodeid);
|
||||||
int dlm_midcomms_start(void);
|
int dlm_midcomms_start(void);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue