This patch fixes coding style violations. Signed-off-by: Christian Gromm <christian.gromm@xxxxxxxxxxxxx> --- drivers/staging/most/core.c | 7 +------ drivers/staging/most/video/video.c | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/most/core.c b/drivers/staging/most/core.c index b0e9179..79a90a2 100644 --- a/drivers/staging/most/core.c +++ b/drivers/staging/most/core.c @@ -283,7 +283,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) @@ -669,13 +668,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; } @@ -716,7 +713,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; @@ -734,7 +730,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; } diff --git a/drivers/staging/most/video/video.c b/drivers/staging/most/video/video.c index 1577f36..a55a2e6 100644 --- a/drivers/staging/most/video/video.c +++ b/drivers/staging/most/video/video.c @@ -547,7 +547,7 @@ static int comp_probe_channel(struct most_interface *iface, int channel_idx, } static int comp_disconnect_channel(struct most_interface *iface, - int channel_idx) + int channel_idx) { struct most_video_dev *mdev = get_comp_dev(iface, channel_idx); -- 2.7.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel