mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 01:36:52 +09:00
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 <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d6f7737d5a
commit
a2cfae06ac
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user