* [PATCH] Staging: mt7621-dma: mtk-hsdma: fix a coding style issue
@ 2019-07-02 8:06 fatihaltinpinar
2019-07-03 16:32 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: fatihaltinpinar @ 2019-07-02 8:06 UTC (permalink / raw)
To: matthias.bgg
Cc: devel, gregkh, linux-kernel, Fatih ALTINPINAR, linux-mediatek,
linux-arm-kernel
From: Fatih ALTINPINAR <fatihaltinpinar@gmail.com>
Fixed a coding style issue. Removed curly brackets of an one
line if statement.
Signed-off-by: Fatih ALTINPINAR <fatihaltinpinar@gmail.com>
---
drivers/staging/mt7621-dma/mtk-hsdma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
index 0fbb9932d6bb..a58725dd2611 100644
--- a/drivers/staging/mt7621-dma/mtk-hsdma.c
+++ b/drivers/staging/mt7621-dma/mtk-hsdma.c
@@ -664,9 +664,8 @@ static int mtk_hsdma_probe(struct platform_device *pdev)
return -EINVAL;
hsdma = devm_kzalloc(&pdev->dev, sizeof(*hsdma), GFP_KERNEL);
- if (!hsdma) {
+ if (!hsdma)
return -EINVAL;
- }
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
base = devm_ioremap_resource(&pdev->dev, res);
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Staging: mt7621-dma: mtk-hsdma: fix a coding style issue
2019-07-02 8:06 [PATCH] Staging: mt7621-dma: mtk-hsdma: fix a coding style issue fatihaltinpinar
@ 2019-07-03 16:32 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2019-07-03 16:32 UTC (permalink / raw)
To: fatihaltinpinar
Cc: matthias.bgg, devel, linux-mediatek, linux-kernel, linux-arm-kernel
On Tue, Jul 02, 2019 at 11:06:32AM +0300, fatihaltinpinar@gmail.com wrote:
> From: Fatih ALTINPINAR <fatihaltinpinar@gmail.com>
>
> Fixed a coding style issue. Removed curly brackets of an one
> line if statement.
>
> Signed-off-by: Fatih ALTINPINAR <fatihaltinpinar@gmail.com>
> ---
> drivers/staging/mt7621-dma/mtk-hsdma.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
> index 0fbb9932d6bb..a58725dd2611 100644
> --- a/drivers/staging/mt7621-dma/mtk-hsdma.c
> +++ b/drivers/staging/mt7621-dma/mtk-hsdma.c
> @@ -664,9 +664,8 @@ static int mtk_hsdma_probe(struct platform_device *pdev)
> return -EINVAL;
>
> hsdma = devm_kzalloc(&pdev->dev, sizeof(*hsdma), GFP_KERNEL);
> - if (!hsdma) {
> + if (!hsdma)
> return -EINVAL;
> - }
>
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> base = devm_ioremap_resource(&pdev->dev, res);
This change is already in my tree, always be sure to work against the
proper kernel tree for doing new development.
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-03 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02 8:06 [PATCH] Staging: mt7621-dma: mtk-hsdma: fix a coding style issue fatihaltinpinar
2019-07-03 16:32 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).