Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bta2dpd/bta2dpd Remove duplicate check for curpkt > 13



details:   https://anonhg.NetBSD.org/src/rev/c859aa8c11c2
branches:  trunk
changeset: 1002541:c859aa8c11c2
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Aug 05 13:45:01 2019 +0000

description:
Remove duplicate check for curpkt > 13

We already guarantee this above:
        if (numpkts < 1 || numpkts > 13) {
                        return -1;

diffstat:

 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c |  5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diffs (19 lines):

diff -r f7af58b51449 -r c859aa8c11c2 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
--- a/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Mon Aug 05 13:39:18 2019 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Mon Aug 05 13:45:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc_encode.c,v 1.6 2019/07/27 23:33:09 maya Exp $ */
+/* $NetBSD: sbc_encode.c,v 1.7 2019/08/05 13:45:01 maya Exp $ */
 
 /*-
  * Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -997,9 +997,6 @@
                totalSize += 2 * decsize;
                offset += decsize;
                cur_pkt++;
-
-               if (cur_pkt > 13)
-                       break;
        }
 
        res = (ssize_t)(sizeof(myHeader)) + next_pkt;



Home | Main Index | Thread Index | Old Index