}
 
        new_net_conf = kmalloc(sizeof(struct net_conf), GFP_KERNEL);
-       if (!new_net_conf) {
-               drbd_err(connection, "Allocation of new net_conf failed\n");
+       if (!new_net_conf)
                goto disconnect;
-       }
 
        mutex_lock(&connection->data.mutex);
        mutex_lock(&connection->resource->conf_update);
 
                if (verify_tfm || csums_tfm) {
                        new_net_conf = kzalloc(sizeof(struct net_conf), GFP_KERNEL);
-                       if (!new_net_conf) {
-                               drbd_err(device, "Allocation of new net_conf failed\n");
+                       if (!new_net_conf)
                                goto disconnect;
-                       }
 
                        *new_net_conf = *old_net_conf;
 
 
                        new_disk_conf = kzalloc(sizeof(struct disk_conf), GFP_KERNEL);
                        if (!new_disk_conf) {
-                               drbd_err(device, "Allocation of new disk_conf failed\n");
                                put_ldev(device);
                                return -ENOMEM;
                        }
        device = peer_device->device;
 
        p_uuid = kmalloc_array(UI_EXTENDED_SIZE, sizeof(*p_uuid), GFP_NOIO);
-       if (!p_uuid) {
-               drbd_err(device, "kmalloc of p_uuid failed\n");
+       if (!p_uuid)
                return false;
-       }
 
        for (i = UI_CURRENT; i < UI_EXTENDED_SIZE; i++)
                p_uuid[i] = be64_to_cpu(p->uuid[i]);
        }
 
        peers_ch = kmalloc(pi.size, GFP_NOIO);
-       if (peers_ch == NULL) {
-               drbd_err(connection, "kmalloc of peers_ch failed\n");
+       if (!peers_ch) {
                rv = -1;
                goto fail;
        }
 
        resp_size = crypto_shash_digestsize(connection->cram_hmac_tfm);
        response = kmalloc(resp_size, GFP_NOIO);
-       if (response == NULL) {
-               drbd_err(connection, "kmalloc of response failed\n");
+       if (!response) {
                rv = -1;
                goto fail;
        }
        }
 
        right_response = kmalloc(resp_size, GFP_NOIO);
-       if (right_response == NULL) {
-               drbd_err(connection, "kmalloc of right_response failed\n");
+       if (!right_response) {
                rv = -1;
                goto fail;
        }