diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2017-11-21 15:05:14 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-11-27 09:20:36 +0100 |
commit | 7e0d35423350d118982096d151140616bbad147d (patch) | |
tree | 95f5b064b5501be1f2313e38e0dbc11675e072ac /drivers/staging/most/core.c | |
parent | fdbdc0e6fe496ad3690be5b3c5c2dba1953ed976 (diff) | |
download | linux-7e0d35423350d118982096d151140616bbad147d.tar.bz2 |
staging: most: core: fix formatting
This patch fixes coding style violations.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most/core.c')
-rw-r--r-- | drivers/staging/most/core.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index 600007e7f55c..839e6cf4fbc0 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -277,7 +277,6 @@ static ssize_t set_number_of_buffers_store(struct device *dev, size_t count) { struct most_channel *c = to_channel(dev); - int ret = kstrtou16(buf, 0, &c->cfg.num_buffers); if (ret) @@ -663,13 +662,11 @@ inline int link_channel_to_component(struct most_channel *c, return -ENOSPC; *comp_ptr = comp; - ret = comp->probe_channel(c->iface, c->channel_id, - &c->cfg, comp_param); + ret = comp->probe_channel(c->iface, c->channel_id, &c->cfg, comp_param); if (ret) { *comp_ptr = NULL; return ret; } - return 0; } @@ -710,7 +707,6 @@ static ssize_t add_link_store(struct device_driver *drv, size_t max_len = min_t(size_t, len + 1, STRING_SIZE); strlcpy(buffer, buf, max_len); - ret = split_string(buffer, &mdev, &mdev_ch, &comp_name, &comp_param); if (ret) return ret; @@ -728,7 +724,6 @@ static ssize_t add_link_store(struct device_driver *drv, ret = link_channel_to_component(c, comp, comp_param); if (ret) return ret; - return len; } |