Skip to contentSkip to conversation

video: fbdev: clean up some inconsistent indenting

PATCH New Yang Li 1 participant 1 message May 4, 2022

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 video: fbdev: clean up some inconsistent indenting

Eliminate the follow smatch warnings:
drivers/video/fbdev/nvidia/nv_hw.c:1512 NVLoadStateExt() warn:
inconsistent indenting drivers/video/fbdev/sis/sis_main.c:4265 sisfb_post_300_rwtest() warn:
inconsistent indenting

---
 drivers/video/fbdev/nvidia/nv_hw.c | 8 ++++----
 drivers/video/fbdev/sis/sis_main.c | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/video/fbdev/nvidia/nv_hw.c +4 -4
index 9b0a324bb1b4..75afaa07e7eb 100644
@@ -1509,10 +1509,10 @@ void NVLoadStateExt(struct nvidia_par *par, RIVA_HW_STATE * state)
 	NV_WR32(par->PFIFO, 0x0495 * 4, 0x00000001);
 	NV_WR32(par->PFIFO, 0x0140 * 4, 0x00000001);
 
-    if (!state) {
-	    par->CurrentState = NULL;
-	    return;
-    }
+	if (!state) {
+		par->CurrentState = NULL;
+		return;
+	}
 
 	if (par->Architecture >= NV_ARCH_10) {
 		if (par->twoHeads) {
drivers/video/fbdev/sis/sis_main.c +1 -1
index f28fd69d5eb7..07acbe72fbaa 100644
@@ -4262,7 +4262,7 @@ static int sisfb_post_300_rwtest(struct sis_video_info *ivideo, int iteration,
 	unsigned int k, RankCapacity, PageCapacity, BankNumHigh, BankNumMid;
 	unsigned int PhysicalAdrOtherPage, PhysicalAdrHigh, PhysicalAdrHalfPage;
 
-	 for(k = 0; k < ARRAY_SIZE(SiS_DRAMType); k++) {
+	for (k = 0; k < ARRAY_SIZE(SiS_DRAMType); k++) {
 
 		RankCapacity = buswidth * SiS_DRAMType[k][3];
 
Signature · 1 line
2.20.1.7.g153144c