Re: [PATCH 106/115] USB: PL2303: correctly handle baudrates above 115200

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

 



Hello,

2011/7/27 Sergei Shtylyov <sshtylyov@xxxxxxxxxx>:
>> +                       while (tmp >= 256) {
>> +                               tmp>>= 2;
>> +                               buf[1]<<= 1;
>> +                       }
>> +                       if (tmp > 256) {
>
>   This will never be true due to the *while* loop above. Also, {} are not
> needed.

Of course, you're right. It must have been leftover from older version.
Fixed patch in attachment.

Regards,
Michal Sroczynski

Attachment: pl2303kernel2.diff
Description: Binary data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux