Skip to contentSkip to conversation

cxgb4: missing curly braces in t4_setup_debugfs()

PATCH Applied Dan Carpenter 2 participants 2 messages Aug 8, 2015 – Aug 10, 2015

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

PATCH 1/2 cxgb4: missing curly braces in t4_setup_debugfs()

There were missing curly braces so it means we call add_debugfs_mem() unintentionally.

Fixes 3ccc6cf74d8c ('cxgb4: Adds support for T6 adapter')
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +2 -1
index b657734..9e0b670 100644
@@ -2665,10 +2665,11 @@ int t4_setup_debugfs(struct adapter *adap)
 					EXT_MEM1_SIZE_G(size));
 		}
 	} else {
-		if (i & EXT_MEM_ENABLE_F)
+		if (i & EXT_MEM_ENABLE_F) {
 			size = t4_read_reg(adap, MA_EXT_MEMORY_BAR_A);
 			add_debugfs_mem(adap, "mc", MEM_MC,
 					EXT_MEM_SIZE_G(size));
+		}
 	}
 
 	de = debugfs_create_file_size("flash", S_IRUSR, adap->debugfs_root, adap,
maintainer Applied
#1 lore raw

From: Dan Carpenter <[email protected]>
Date: Sat, 8 Aug 2015 22:15:25 +0300

Quoted 5 lines

There were missing curly braces so it means we call add_debugfs_mem() unintentionally.

Fixes 3ccc6cf74d8c ('cxgb4: Adds support for T6 adapter')

Applied to 'net'.