aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gromm <[email protected]>2015-09-28 17:18:37 +0200
committerGreg Kroah-Hartman <[email protected]>2015-09-29 03:18:49 +0200
commita2cfae06acf9b7f142fbde4a5cc94c1423136390 (patch)
tree9fe18153359909526becb105f89ceb5ae1ea442d
parentd6f7737d5a576f0625ebb2a5896d1b13e3c1c95c (diff)
staging: most: remove dead code
The case where the channel type is neither synchronous nor isochronous is already covered by a previous condition. Signed-off-by: Christian Gromm <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/most/hdm-usb/hdm_usb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/most/hdm-usb/hdm_usb.c b/drivers/staging/most/hdm-usb/hdm_usb.c
index 61974dd5075d..54c8c1ebe73e 100644
--- a/drivers/staging/most/hdm-usb/hdm_usb.c
+++ b/drivers/staging/most/hdm-usb/hdm_usb.c
@@ -777,12 +777,6 @@ static int hdm_configure_channel(struct most_interface *iface, int channel,
mdev->padding_active[channel] = true;
temp_size = conf->buffer_size;
- if ((conf->data_type != MOST_CH_SYNC) &&
- (conf->data_type != MOST_CH_ISOC_AVP)) {
- dev_warn(dev, "Unsupported data type\n");
- return -EINVAL;
- }
-
frame_size = get_stream_frame_size(conf);
if ((frame_size == 0) || (frame_size > USB_MTU)) {
dev_warn(dev, "Misconfig: frame size wrong\n");