Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=353b13e10a3f1a18c6b33858fb3337bcd2692eb5
Commit:     353b13e10a3f1a18c6b33858fb3337bcd2692eb5
Parent:     8d13bf9a0bd4984756e234ce54299b92acefab99
Author:     Gerrit Renker <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 20 13:10:15 2007 -0300
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Apr 25 22:26:47 2007 -0700

    [CCID3]: Remove redundant `len' test
    
    Since CCID3 avoids  sending 0-byte data packets (cf. 
ccid3_hc_tx_send_packet),
    testing for zero-payload length, as performed by ccid3_hc_tx_update_s, is
    redundant - hence removed by this patch.
    
    Signed-off-by: Gerrit Renker <[EMAIL PROTECTED]>
    Acked-by: Ian McDonald <[EMAIL PROTECTED]>
    Signed-off-by: Arnaldo Carvalho de Melo <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/dccp/ccids/ccid3.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c
index 746f79d..4be62a9 100644
--- a/net/dccp/ccids/ccid3.c
+++ b/net/dccp/ccids/ccid3.c
@@ -149,11 +149,8 @@ static void ccid3_hc_tx_update_x(struct sock *sk, struct 
timeval *now)
  */
 static inline void ccid3_hc_tx_update_s(struct ccid3_hc_tx_sock *hctx, int len)
 {
-       if (unlikely(len == 0))
-               ccid3_pr_debug("Packet payload length is 0 - not updating\n");
-       else
-               hctx->ccid3hctx_s = hctx->ccid3hctx_s == 0 ? len :
-                                   (9 * hctx->ccid3hctx_s + len) / 10;
+       hctx->ccid3hctx_s = hctx->ccid3hctx_s == 0 ? len :
+                           (9 * hctx->ccid3hctx_s + len) / 10;
        /*
         * Note: We could do a potential optimisation here - when `s' changes,
         *       recalculate sending rate and consequently t_ipi, t_delta, and
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to