]> xenbits.xensource.com Git - people/dstodden/blktap.git/commitdiff
CA-32254: Clean up tapdisk_channel_receive_open_response.
authorDaniel Stodden <daniel.stodden@citrix.com>
Tue, 6 Oct 2009 02:05:27 +0000 (19:05 -0700)
committerDaniel Stodden <daniel.stodden@citrix.com>
Tue, 6 Oct 2009 02:05:27 +0000 (19:05 -0700)
daemon/tapdisk-channel.c

index cd0053f5e47021002a803b1818b3c19695a32706..e65bb205909fce913318f1411c3de41ad67454e7 100644 (file)
@@ -468,15 +468,13 @@ tapdisk_channel_receive_open_response(tapdisk_channel_t *channel,
        channel->image.info    = message->u.image.info;
 
        err = tapdisk_channel_complete_connection(channel);
-       if (err)
-               goto fail;
+       if (err) {
+               tapdisk_channel_fatal(channel,
+                                     "failure completing connection: %d", err);
+               return err;
+       }
 
        return 0;
-
-fail:
-       tapdisk_channel_fatal(channel,
-                             "failure completing connection: %d", err);
-       return err;
 }
 
 static int