question about drivers/staging/quatech_usb2/quatech_usb2.c

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

 



The code below seems suspicious.  Which definition of nSWflowout is
the right one?

This is not intended as a proper patch.  I can send a proper patch when I
know what to do.

julia



diff -u -p a/drivers/staging/quatech_usb2/quatech_usb2.c b/drivers/staging/quatech_usb2/quatech_usb2.c
--- a/drivers/staging/quatech_usb2/quatech_usb2.c
+++ b/drivers/staging/quatech_usb2/quatech_usb2.c
@@ -1915,7 +1915,6 @@ static int qt2_boxsetsw_flowctl(struct u
 {
 	__u16 nSWflowout;
 
-	nSWflowout = start_char << 8;
 	nSWflowout = (unsigned short)stop_char;
 	return usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
 			QT2_SW_FLOW_CONTROL_MASK, 0x40, nSWflowout, UartNumber,
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux