]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: most: remove dead code
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 28 Sep 2015 15:18:37 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:18:49 +0000 (03:18 +0200)
The case where the channel type is neither synchronous nor isochronous is
already covered by a previous condition.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-usb/hdm_usb.c

index 61974dd5075d5a7a16503c6dd16142be7b1861fe..54c8c1ebe73e288b12f71fc296033a6e1edc75d1 100644 (file)
@@ -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");