drbd: Remove now-unused int_dig_out buffer
authorAndreas Gruenbacher <agruen@linbit.com>
Wed, 30 Mar 2011 23:15:34 +0000 (01:15 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 8 Nov 2012 15:45:09 +0000 (16:45 +0100)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_nl.c

index 663f7b61175609f2366e9538aa5079fc7ece34b2..ccc374cc7eaad6d6abf83fe6dd77ee3b4120e9ae 100644 (file)
@@ -893,7 +893,6 @@ struct drbd_tconn {                 /* is a resource from the config file */
        struct crypto_hash *integrity_r_tfm; /* to be used by the receiver thread */
        struct crypto_hash *csums_tfm;
        struct crypto_hash *verify_tfm;
-       void *int_dig_out;
        void *int_dig_in;
        void *int_dig_vv;
 
index 230622f1aae2b7167a4900baf6204933661adeae..e3dc84dcd67e22f11a023e15f629e552a4983a4d 100644 (file)
@@ -2404,7 +2404,6 @@ void drbd_free_tconn(struct drbd_tconn *tconn)
        drbd_free_socket(&tconn->meta);
        drbd_free_socket(&tconn->data);
        kfree(tconn->name);
-       kfree(tconn->int_dig_out);
        kfree(tconn->int_dig_in);
        kfree(tconn->int_dig_vv);
        kfree(tconn);
index 5cf116471aa3a390d9f1629063aba2de87efedcf..d9bb1a5c756a284a3252871c05607ae11ecf5263 100644 (file)
@@ -1781,7 +1781,6 @@ int drbd_adm_connect(struct sk_buff *skb, struct genl_info *info)
        struct crypto_hash *tfm = NULL;
        struct crypto_hash *integrity_w_tfm = NULL;
        struct crypto_hash *integrity_r_tfm = NULL;
-       void *int_dig_out = NULL;
        void *int_dig_in = NULL;
        void *int_dig_vv = NULL;
        struct drbd_tconn *oconn;
@@ -1955,11 +1954,6 @@ int drbd_adm_connect(struct sk_buff *skb, struct genl_info *info)
        /* allocation not in the IO path, cqueue thread context */
        if (integrity_w_tfm) {
                i = crypto_hash_digestsize(integrity_w_tfm);
-               int_dig_out = kmalloc(i, GFP_KERNEL);
-               if (!int_dig_out) {
-                       retcode = ERR_NOMEM;
-                       goto fail;
-               }
                int_dig_in = kmalloc(i, GFP_KERNEL);
                if (!int_dig_in) {
                        retcode = ERR_NOMEM;
@@ -1990,10 +1984,8 @@ int drbd_adm_connect(struct sk_buff *skb, struct genl_info *info)
        crypto_free_hash(tconn->integrity_r_tfm);
        tconn->integrity_r_tfm = integrity_r_tfm;
 
-       kfree(tconn->int_dig_out);
        kfree(tconn->int_dig_in);
        kfree(tconn->int_dig_vv);
-       tconn->int_dig_out=int_dig_out;
        tconn->int_dig_in=int_dig_in;
        tconn->int_dig_vv=int_dig_vv;
        retcode = _conn_request_state(tconn, NS(conn, C_UNCONNECTED), CS_VERBOSE);
@@ -2009,7 +2001,6 @@ int drbd_adm_connect(struct sk_buff *skb, struct genl_info *info)
        return 0;
 
 fail:
-       kfree(int_dig_out);
        kfree(int_dig_in);
        kfree(int_dig_vv);
        crypto_free_hash(tfm);
This page took 0.049285 seconds and 5 git commands to generate.