Remove dead assignment
authorWouter Verhelst <w@uter.be>
Sun, 12 Jun 2011 10:54:19 +0000 (12:54 +0200)
committerWouter Verhelst <w@uter.be>
Sun, 12 Jun 2011 10:54:19 +0000 (12:54 +0200)
This used to be part of option handling, but is dead and useless since
we switched option handling to getopt() calls.

nbd-client.c

index 2456c59..a88fa2a 100644 (file)
@@ -435,7 +435,6 @@ int main(int argc, char *argv[]) {
        nbd = open(nbddev, O_RDWR);
        if (nbd < 0)
          err("Cannot open NBD: %m\nPlease ensure the 'nbd' module is loaded.");
-       ++argv; --argc; /* skip device */
 
        sock = opennet(hostname, port, sdp);