Skip to content

Commit f49da8c

Browse files
Alexander Aringteigland
authored andcommitted
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 <[email protected]> Signed-off-by: David Teigland <[email protected]>
1 parent a215540 commit f49da8c

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

fs/dlm/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static ssize_t comm_addr_store(struct config_item *item, const char *buf,
672672

673673
memcpy(addr, buf, len);
674674

675-
rv = dlm_midcomms_addr(cm->nodeid, addr, len);
675+
rv = dlm_midcomms_addr(cm->nodeid, addr);
676676
if (rv) {
677677
kfree(addr);
678678
return rv;

fs/dlm/lowcomms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ static bool dlm_lowcomms_con_has_addr(const struct connection *con,
461461
return false;
462462
}
463463

464-
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len)
464+
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr)
465465
{
466466
struct connection *con;
467467
bool ret, idx;

fs/dlm/lowcomms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void dlm_lowcomms_put_msg(struct dlm_msg *msg);
4646
int dlm_lowcomms_resend_msg(struct dlm_msg *msg);
4747
int dlm_lowcomms_connect_node(int nodeid);
4848
int dlm_lowcomms_nodes_set_mark(int nodeid, unsigned int mark);
49-
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
49+
int dlm_lowcomms_addr(int nodeid, struct sockaddr_storage *addr);
5050
void dlm_midcomms_receive_done(int nodeid);
5151
struct kmem_cache *dlm_lowcomms_writequeue_cache_create(void);
5252
struct kmem_cache *dlm_lowcomms_msg_cache_create(void);

fs/dlm/midcomms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,12 +334,12 @@ static struct midcomms_node *nodeid2node(int nodeid)
334334
return __find_node(nodeid, nodeid_hash(nodeid));
335335
}
336336

337-
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len)
337+
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr)
338338
{
339339
int ret, idx, r = nodeid_hash(nodeid);
340340
struct midcomms_node *node;
341341

342-
ret = dlm_lowcomms_addr(nodeid, addr, len);
342+
ret = dlm_lowcomms_addr(nodeid, addr);
343343
if (ret)
344344
return ret;
345345

fs/dlm/midcomms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ int dlm_process_incoming_buffer(int nodeid, unsigned char *buf, int buflen);
1919
struct dlm_mhandle *dlm_midcomms_get_mhandle(int nodeid, int len, char **ppc);
2020
void dlm_midcomms_commit_mhandle(struct dlm_mhandle *mh, const void *name,
2121
int namelen);
22-
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr, int len);
22+
int dlm_midcomms_addr(int nodeid, struct sockaddr_storage *addr);
2323
void dlm_midcomms_version_wait(void);
2424
int dlm_midcomms_close(int nodeid);
2525
int dlm_midcomms_start(void);

0 commit comments

Comments
 (0)