Net: ceph: osd_client: Remove con argument in handle_reply
PATCH 1/1 Net: ceph: osd_client: Remove con argument in handle_reply
Since the function handle_reply does not use it's con argument, remove it.
Signed-off-by Shraddha Barke <[email protected]>
--- net/ceph/osd_client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
net/ceph/osd_client.c +2 -3
@@ -1745,8 +1745,7 @@ static void complete_request(struct ceph_osd_request *req)* handle osd op reply. either call the callback if it is specified, * or do the completion to wake up the waiting thread. */ -static void handle_reply (struct ceph_osd_client *osdc,struct ceph_msg *msg, -struct ceph_connection *con) +static void handle_reply (struct ceph_osd_client *osdc,struct ceph_msg *msg) {void *p, *end;struct ceph_osd_request *req;
@@ -2802,7 +2801,7 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg)ceph_osdc_handle_map (osdc, msg);break ;case CEPH_MSG_OSD_OPREPLY : -handle_reply (osdc, msg, con); +handle_reply (osdc, msg);break ;case CEPH_MSG_WATCH_NOTIFY :handle_watch_notify (osdc, msg);
Signature · 1 line
2.1.4
Quoted 23 lines · Shraddha Barke
Since the function
handle_replydoes not use it's con argument, remove it.Signed-off-by Shraddha Barke <[email protected]>--- net/ceph/osd_client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)net/ceph/osd_client.c +1
-2@@ -1745,8 +1745,7 @@ static void complete_request(struct ceph_osd_request *req)* handle osd op reply. either call the callback if it is specified, * or do the completion to wake up the waiting thread. */ -static void handle_reply (struct ceph_osd_client *osdc,struct ceph_msg *msg, -struct ceph_connection *con) +static void handle_reply (struct ceph_osd_client *osdc,struct ceph_msg *msg) {void *p, *end;struct ceph_osd_request *req;
net/ceph/osd_client.c static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) · line 2807
Quoted 8 lines
net/ceph/osd_client.c +1
-1@@ -2802,7 +2801,7 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg)ceph_osdc_handle_map (osdc, msg);break ;case CEPH_MSG_OSD_OPREPLY : -handle_reply (osdc, msg, con); +handle_reply (osdc, msg);break ;case CEPH_MSG_WATCH_NOTIFY :handle_watch_notify (osdc, msg);
Applied, with a slightly tweaked change log - see
https://github.com/ceph/ceph-client/commit/81c842af2b39009ec1f8272a33b149ad0e845aaf.
Thanks,
Ilya