public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Vinod Koul <vinod.koul@intel.com>
Cc: Dan Williams <djbw@fb.com>, linux-kernel@vger.kernel.org
Subject: [PATCH] dma: intel_mid: Remove return statements at the end of all void functions
Date: Sat, 22 Dec 2012 13:53:45 +0800	[thread overview]
Message-ID: <1356155625.6843.0.camel@phoenix> (raw)

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/dma/intel_mid_dma.c |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/drivers/dma/intel_mid_dma.c b/drivers/dma/intel_mid_dma.c
index bc764af..1a83d1d 100644
--- a/drivers/dma/intel_mid_dma.c
+++ b/drivers/dma/intel_mid_dma.c
@@ -133,7 +133,6 @@ static void dmac1_mask_periphral_intr(struct middma_device *mid)
 		pimr |= mid->pimr_mask;
 		writel(pimr, mid->mask_reg + LNW_PERIPHRAL_MASK);
 	}
-	return;
 }
 
 /**
@@ -154,7 +153,6 @@ static void dmac1_unmask_periphral_intr(struct intel_mid_dma_chan *midc)
 		pimr &= ~mid->pimr_mask;
 		writel(pimr, mid->mask_reg + LNW_PERIPHRAL_MASK);
 	}
-	return;
 }
 
 /**
@@ -172,7 +170,6 @@ static void enable_dma_interrupt(struct intel_mid_dma_chan *midc)
 	/*en ch interrupts*/
 	iowrite32(UNMASK_INTR_REG(midc->ch_id), midc->dma_base + MASK_TFR);
 	iowrite32(UNMASK_INTR_REG(midc->ch_id), midc->dma_base + MASK_ERR);
-	return;
 }
 
 /**
@@ -189,7 +186,6 @@ static void disable_dma_interrupt(struct intel_mid_dma_chan *midc)
 	iowrite32(MASK_INTR_REG(midc->ch_id), midc->dma_base + MASK_BLOCK);
 	iowrite32(MASK_INTR_REG(midc->ch_id), midc->dma_base + MASK_TFR);
 	iowrite32(MASK_INTR_REG(midc->ch_id), midc->dma_base + MASK_ERR);
-	return;
 }
 
 /*****************************************************************************
@@ -341,8 +337,7 @@ static void midc_scan_descriptors(struct middma_device *mid,
 		if (desc->status == DMA_IN_PROGRESS)
 			midc_descriptor_complete(midc, desc);
 	}
-	return;
-	}
+}
 /**
  * midc_lli_fill_sg -		Helper function to convert
  *				SG list to Linked List Items.
@@ -992,7 +987,6 @@ static void dma_tasklet(unsigned long data)
 		spin_unlock_bh(&midc->lock);
 	}
 	pr_debug("MDMA:Exiting takslet...\n");
-	return;
 }
 
 static void dma_tasklet1(unsigned long data)
@@ -1214,7 +1208,6 @@ static void middma_shutdown(struct pci_dev *pdev)
 	if (device->dma_base)
 		iounmap(device->dma_base);
 	free_irq(pdev->irq, device);
-	return;
 }
 
 /**
-- 
1.7.9.5




                 reply	other threads:[~2012-12-22  5:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1356155625.6843.0.camel@phoenix \
    --to=axel.lin@ingics.com \
    --cc=djbw@fb.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vinod.koul@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox