lkml.org 
[lkml]   [2009]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[26/90] V4L/DVB: Fix test in copy_reg_bits()
    2.6.31-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Roel Kluin <roel.kluin@gmail.com>

    commit c95a419a5604ec8a23cd73f61e9bb151e8cbe89b upstream.

    The reg_pair2[j].reg was tested twice.

    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Acked-by: Michael Krufky <mkrufky@linuxtv.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/media/common/tuners/mxl5007t.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/media/common/tuners/mxl5007t.c
    +++ b/drivers/media/common/tuners/mxl5007t.c
    @@ -196,7 +196,7 @@ static void copy_reg_bits(struct reg_pai
    i = j = 0;

    while (reg_pair1[i].reg || reg_pair1[i].val) {
    - while (reg_pair2[j].reg || reg_pair2[j].reg) {
    + while (reg_pair2[j].reg || reg_pair2[j].val) {
    if (reg_pair1[i].reg != reg_pair2[j].reg) {
    j++;
    continue;



    \
     
     \ /
      Last update: 2009-12-17 02:23    [W:0.030 / U:0.704 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site