lkml.org 
[lkml]   [2011]   [Aug]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[07/26] USB: ftdi_sio: fix minor typo in get_ftdi_divisor
    3.0-stable review patch.  If anyone has any objections, please let us know.

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

    From: Ionut Nicu <ionut.nicu@cloudbit.ro>

    commit 1862cdd542025218f7a390b7e6ddc83a1362d1e0 upstream.

    Even if it's unlikely for this to cause an error,
    there is a typo in the code that uses the bitwise-AND
    operator instead of the logical one.

    Signed-off-by: Ionut Nicu <ionut.nicu@cloudbit.ro>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    drivers/usb/serial/ftdi_sio.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    --- a/drivers/usb/serial/ftdi_sio.c
    +++ b/drivers/usb/serial/ftdi_sio.c
    @@ -1171,7 +1171,7 @@ static __u32 get_ftdi_divisor(struct tty
    case FT2232H: /* FT2232H chip */
    case FT4232H: /* FT4232H chip */
    case FT232H: /* FT232H chip */
    - if ((baud <= 12000000) & (baud >= 1200)) {
    + if ((baud <= 12000000) && (baud >= 1200)) {
    div_value = ftdi_2232h_baud_to_divisor(baud);
    } else if (baud < 1200) {
    div_value = ftdi_232bm_baud_to_divisor(baud);



    \
     
     \ /
      Last update: 2011-08-16 04:55    [W:0.018 / U:2.932 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site