]> err.no Git - linux-2.6/commitdiff
sctp: remove shadowed symbols
authorsebastian@breakpoint.cc <sebastian@breakpoint.cc>
Thu, 26 Jul 2007 21:21:33 +0000 (23:21 +0200)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Wed, 1 Aug 2007 15:19:06 +0000 (11:19 -0400)
Fixes the following sparse warnings:
net/sctp/sm_make_chunk.c:1457:9: warning: symbol 'len' shadows an earlier one
net/sctp/sm_make_chunk.c:1356:23: originally declared here
net/sctp/socket.c:1534:22: warning: symbol 'chunk' shadows an earlier one
net/sctp/socket.c:1387:20: originally declared here

Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_make_chunk.c
net/sctp/socket.c

index ad02311dcd831ab4ca757465b4f93d7c9888b8dd..ba76ceca2a4e01c5f55eeb517e7bd2f8386dd27a 100644 (file)
@@ -1452,7 +1452,6 @@ no_hmac:
                do_gettimeofday(&tv);
 
        if (!asoc && tv_lt(bear_cookie->expiration, tv)) {
-               __u16 len;
                /*
                 * Section 3.3.10.3 Stale Cookie Error (3)
                 *
index f8de0eb235d915825d10e3222283d9becd52dc75..b31be0994572828a094b416b05d4e0792b252d9c 100644 (file)
@@ -1529,7 +1529,6 @@ SCTP_STATIC int sctp_sendmsg(struct kiocb *iocb, struct sock *sk,
                        goto out_unlock;
                }
                if (sinfo_flags & SCTP_ABORT) {
-                       struct sctp_chunk *chunk;
 
                        chunk = sctp_make_abort_user(asoc, msg, msg_len);
                        if (!chunk) {