Skip to contentSkip to conversation

drm/gma500: Clean up some inconsistent indenting

PATCH In review Jiapeng Chong 2 participants 2 messages May 5, 2022 – Jun 2, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/gma500: Clean up some inconsistent indenting

Eliminate the follow smatch warning:

drivers/gpu/drm/gma500/cdv_device.c:250 cdv_errata() warn:
inconsistent indenting.

---
 drivers/gpu/drm/gma500/cdv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/cdv_device.c +1 -1
index dd32b484dd82..09684c42cbf6 100644
@@ -247,7 +247,7 @@ static void cdv_errata(struct drm_device *dev)
 	 *	Bonus Launch to work around the issue, by degrading
 	 *	performance.
 	 */
-	 CDV_MSG_WRITE32(pci_domain_nr(pdev->bus), 3, 0x30, 0x08027108);
+	CDV_MSG_WRITE32(pci_domain_nr(pdev->bus), 3, 0x30, 0x08027108);
 }
 
 /**
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 8 lines · Jiapeng Chong

Eliminate the follow smatch warning:

drivers/gpu/drm/gma500/cdv_device.c:250 cdv_errata() warn:
inconsistent indenting.

Hi Jiapeng,
One entire patch to remove a single whitespace seems a bit excessive. Would you mind fixing a few more of the code style issues in cdv_device.c while you're at it?

Checkpatch can give you a few hints:
./scripts/checkpatch.pl -f drivers/gpu/drm/gma500/cdv_device.c

Thanks
Patrik

Quoted 20 lines
---
 drivers/gpu/drm/gma500/cdv_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/gma500/cdv_device.c +1 -2
index dd32b484dd82..09684c42cbf6 100644
@@ -247,7 +247,7 @@ static void cdv_errata(struct drm_device *dev)
         *      Bonus Launch to work around the issue, by degrading
         *      performance.
         */
-        CDV_MSG_WRITE32(pci_domain_nr(pdev->bus), 3, 0x30, 0x08027108);
+       CDV_MSG_WRITE32(pci_domain_nr(pdev->bus), 3, 0x30, 0x08027108);
 }
 
 /**
--

2.20.1.7.g153144c