• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

linux-3.0.x for AP-SH4A-0A Board


Commit MetaInfo

Révisionb2dc65e856c69b36a183c0ba41ff5f5a3af92fc8 (tree)
l'heure2011-08-18 02:55:51
AuteurIonut Nicu <ionut.nicu@clou...>
CommiterGreg Kroah-Hartman

Message de Log

USB: ftdi_sio: fix minor typo in get_ftdi_divisor

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>

Change Summary

Modification

--- 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_struct *tty,
11711171 case FT2232H: /* FT2232H chip */
11721172 case FT4232H: /* FT4232H chip */
11731173 case FT232H: /* FT232H chip */
1174- if ((baud <= 12000000) & (baud >= 1200)) {
1174+ if ((baud <= 12000000) && (baud >= 1200)) {
11751175 div_value = ftdi_2232h_baud_to_divisor(baud);
11761176 } else if (baud < 1200) {
11771177 div_value = ftdi_232bm_baud_to_divisor(baud);