staging: most: remove unnecessary field initialization
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 28 Sep 2015 15:18:36 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:18:49 +0000 (03:18 +0200)
Since conf->extra_len has already been reset in most_start_channel() when
function hdm_configure_channel() gets called, it can safely be removed
here.

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 9006793aec64464bdb529f6536c448103d718825..61974dd5075d5a7a16503c6dd16142be7b1861fe 100644 (file)
@@ -771,7 +771,6 @@ static int hdm_configure_channel(struct most_interface *iface, int channel,
            !((conf->data_type == MOST_CH_ISOC_AVP) &&
              (conf->packets_per_xact != 0xFF))) {
                mdev->padding_active[channel] = false;
-               conf->extra_len = 0;
                goto exit;
        }