lkml.org 
[lkml]   [2010]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[16/30] V4L/DVB (13868): gspca - sn9c20x: Fix test of unsigned.
    2.6.32-stable review patch.  If anyone has any objections, please let us know.

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

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

    commit c60503c1db76bd46577cc7ff4fafa033b675e0e5 upstream.

    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
    Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/media/video/gspca/sn9c20x.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/media/video/gspca/sn9c20x.c
    +++ b/drivers/media/video/gspca/sn9c20x.c
    @@ -2319,7 +2319,7 @@ static void do_autogain(struct gspca_dev
    }
    }
    if (avg_lum > MAX_AVG_LUM) {
    - if (sd->gain - 1 >= 0) {
    + if (sd->gain >= 1) {
    sd->gain--;
    set_gain(gspca_dev);
    }



    \
     
     \ /
      Last update: 2010-01-21 05:29    [W:4.119 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site