[PATCH 2/2] dump_audiostreaming_interface(): drop audio class 2 FORMAT_TYPE length check

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

 



This check is done for the individual subtypes anyway, so drop it for
the generic header.

Signed-off-by: Daniel Mack <daniel@xxxxxxxx>
---
 lsusb.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/lsusb.c b/lsusb.c
index b0b073d..d98118f 100644
--- a/lsusb.c
+++ b/lsusb.c
@@ -1689,8 +1689,6 @@ static void dump_audiostreaming_interface(struct usb_dev_handle *dev, unsigned c
 			break;
 
 		case USB_AUDIO_CLASS_2:
-			if (buf[0] < 8)
-				printf("      Warning: Descriptor too short\n");
 			printf("        bFormatType         %5u ", buf[3]);
 			switch (buf[3]) {
 			case 0x01: /* FORMAT_TYPE_I */
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux