]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ipv6] Fix uninitialised-variable warning
authorMichael Brown <mcb30@ipxe.org>
Tue, 3 Sep 2013 19:01:17 +0000 (20:01 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 3 Sep 2013 19:01:17 +0000 (20:01 +0100)
Fix uninitialised-variable warning reported by gcc 4.5.2.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/ndp.c

index 48b16d0251f78627d156dba7775f50534a62f515..ee3a5b8b1b1514cca6a24366ecc29de8e4851d6f 100644 (file)
@@ -352,6 +352,9 @@ static int ndp_rx ( struct io_buffer *iobuf,
                remaining -= option_len;
        }
 
+       /* Success */
+       rc = 0;
+
  done:
        free_iob ( iobuf );
        return rc;