summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorHeena Sirwani2014-10-06 08:29:29 +0200
committerGreg Kroah-Hartman2014-10-20 04:29:13 +0200
commitea0db9b2fd284104a9fd1cead85252a83375c71f (patch)
treeb2fe328ce3325d030945950592b9fb0b31d0dfe3 /drivers/staging/comedi
parentstaging: comedi: drivers: Replace "the the " with "the" (diff)
downloadkernel-qcow2-linux-ea0db9b2fd284104a9fd1cead85252a83375c71f.tar.gz
kernel-qcow2-linux-ea0db9b2fd284104a9fd1cead85252a83375c71f.tar.xz
kernel-qcow2-linux-ea0db9b2fd284104a9fd1cead85252a83375c71f.zip
Staging: comedi: drivers: Compressed two lines of code into one.
The following patch compresses two lines of code into one using coccinelle and removes an unused variable. The following semantic patch was used: @@ expression ret; identifier f; @@ -ret = +return f(...); -return ret; Signed-off-by: Heena Sirwani <heenasirwani@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/mite.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/comedi/drivers/mite.c b/drivers/staging/comedi/drivers/mite.c
index 4f7829010a99..a43b5beffc4b 100644
--- a/drivers/staging/comedi/drivers/mite.c
+++ b/drivers/staging/comedi/drivers/mite.c
@@ -494,13 +494,10 @@ EXPORT_SYMBOL_GPL(mite_bytes_read_from_memory_ub);
unsigned mite_dma_tcr(struct mite_channel *mite_chan)
{
struct mite_struct *mite = mite_chan->mite;
- int tcr;
int lkar;
lkar = readl(mite->mite_io_addr + MITE_LKAR(mite_chan->channel));
- tcr = readl(mite->mite_io_addr + MITE_TCR(mite_chan->channel));
-
- return tcr;
+ return readl(mite->mite_io_addr + MITE_TCR(mite_chan->channel));
}
EXPORT_SYMBOL_GPL(mite_dma_tcr);