]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: most: Remove exceptional & on function name
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 13 Oct 2015 15:37:49 +0000 (21:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 17:11:03 +0000 (10:11 -0700)
In this file, function names are otherwise used as pointers without &.

A simplified version of the Coccinelle semantic patch that makes this
change is as follows:

// <smpl>
@r@
identifier f;
@@

f(...) { ... }
@@
identifier r.f;
@@

- &f
+ f
// </smpl>

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-sound/sound.c
drivers/staging/most/mostcore/core.c

index f08545c56110f807bd1fa69c6293252c3ecfaa88..4d3376340daab2de4f55a1564b35bbae04e77f3a 100644 (file)
@@ -279,7 +279,7 @@ static int pcm_open(struct snd_pcm_substream *substream)
        channel->substream = substream;
 
        if (cfg->direction == MOST_CH_TX) {
-               channel->playback_task = kthread_run(&playback_thread, channel,
+               channel->playback_task = kthread_run(playback_thread, channel,
                                                     "most_audio_playback");
                if (IS_ERR(channel->playback_task)) {
                        pr_err("Couldn't start thread\n");
index 0045c10413eb000cbfe12c9683371030851b92bf..1905547bf990c2c15f3515b84feacccd7f1f83ea 100644 (file)
@@ -1204,7 +1204,8 @@ static int hdm_enqueue_thread(void *data)
 static int run_enqueue_thread(struct most_c_obj *c, int channel_id)
 {
        struct task_struct *task =
-               kthread_run(&hdm_enqueue_thread, c, "hdm_fifo_%d", channel_id);
+               kthread_run(hdm_enqueue_thread, c, "hdm_fifo_%d",
+                           channel_id);
 
        if (IS_ERR(task))
                return PTR_ERR(task);