]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
staging: most: core: fix formatting
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 21 Nov 2017 14:05:14 +0000 (15:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2017 08:20:36 +0000 (09:20 +0100)
This patch fixes coding style violations.

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

index 600007e7f55c0328044294fc8ee9efeafbb74726..839e6cf4fbc0b01fb54055f925c4779a22b6c445 100644 (file)
@@ -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;
 }
 
index 4be1e0dc9dd2a56a7cac9c566a3e4bddaa82b21d..098873851646b7e7ebb42b53700141dd23a083a4 100644 (file)
@@ -541,7 +541,7 @@ err_unreg:
 }
 
 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);