Skip to contentSkip to conversation

Net: ceph: osd_client: Remove con argument in handle_reply

PATCH Applied Shraddha Barke 2 participants 2 messages Oct 18, 2015 Ceph common code (libceph)

lore
Share & tools
lore
#0 lore raw

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.

---
 net/ceph/osd_client.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
net/ceph/osd_client.c +2 -3
index 80b94e3..e281f60 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 23 lines · Shraddha Barke

Since the function handle_reply does not use it's con argument, remove it.

---
 net/ceph/osd_client.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
net/ceph/osd_client.c +1 -2
index 80b94e3..e281f60 100644
@@ -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