diff mbox

dma: imx-sdma: Remove redundant assignment

Message ID 1466832839-32248-1-git-send-email-shc_work@mail.ru (mailing list archive)
State Changes Requested
Headers show

Commit Message

Alexander Shiyan June 25, 2016, 5:33 a.m. UTC
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 drivers/dma/imx-sdma.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Vinod Koul June 28, 2016, 3:36 a.m. UTC | #1
On Sat, Jun 25, 2016 at 08:33:59AM +0300, Alexander Shiyan wrote:
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>

No changelog? Please do explain why this is redundant...

> ---
>  drivers/dma/imx-sdma.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
> index 0f6fd42..409d858 100644
> --- a/drivers/dma/imx-sdma.c
> +++ b/drivers/dma/imx-sdma.c
> @@ -999,8 +999,6 @@ static int sdma_config_channel(struct dma_chan *chan)
>  		} else
>  			__set_bit(sdmac->event_id0, sdmac->event_mask);
>  
> -		/* Watermark Level */
> -		sdmac->watermark_level |= sdmac->watermark_level;
>  		/* Address */
>  		sdmac->shp_addr = sdmac->per_address;
>  		sdmac->per_addr = sdmac->per_address2;
> -- 
> 2.4.9
>
Alexander Shiyan July 1, 2016, 7:10 p.m. UTC | #2
PtCS0YLQvtGA0L3QuNC6LCAyOCDQuNGO0L3RjyAyMDE2LCA2OjM2ICswMzowMCDQvtGCIFZpbm9k
IEtvdWwgPHZpbm9kLmtvdWxAaW50ZWwuY29tPjoKPgo+T24gU2F0LCBKdW4gMjUsIDIwMTYgYXQg
MDg6MzM6NTlBTSArMDMwMCwgQWxleGFuZGVyIFNoaXlhbiB3cm90ZToKPj4gU2lnbmVkLW9mZi1i
eTogQWxleGFuZGVyIFNoaXlhbiA8IHNoY193b3JrQG1haWwucnUgPgo+Cj5ObyBjaGFuZ2Vsb2c/
IFBsZWFzZSBkbyBleHBsYWluIHdoeSB0aGlzIGlzIHJl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KCi0tLQoK
--
To unsubscribe from this list: send the line "unsubscribe dmaengine" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Uwe Kleine-König July 1, 2016, 8:06 p.m. UTC | #3
Hello,

On Fri, Jul 01, 2016 at 10:10:24PM +0300, Alexander Shiyan wrote:
> >Вторник, 28 июня 2016, 6:36 +03:00 от Vinod Koul <vinod.koul@intel.com>:
> >
> >On Sat, Jun 25, 2016 at 08:33:59AM +0300, Alexander Shiyan wrote:
> >> Signed-off-by: Alexander Shiyan < shc_work@mail.ru >
> >
> >No changelog? Please do explain why this is redundant...
> 
> I can not even imagine what it would be possible to add in the description,
> in addition to the subject.
> The patch consists of one line which speaks for itself.
> Such change really need to explain?

Something like:

	An expression

		v |= v

	with v being an unsigned int has no effect. Removing it doesn't
	change the generated code (tested with gcc 5.1).

would be great.

Best regards
Uwe
diff mbox

Patch

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 0f6fd42..409d858 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -999,8 +999,6 @@  static int sdma_config_channel(struct dma_chan *chan)
 		} else
 			__set_bit(sdmac->event_id0, sdmac->event_mask);
 
-		/* Watermark Level */
-		sdmac->watermark_level |= sdmac->watermark_level;
 		/* Address */
 		sdmac->shp_addr = sdmac->per_address;
 		sdmac->per_addr = sdmac->per_address2;