mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
cxgb4: missing curly braces in t4_setup_debugfs()
There were missing curly braces so it means we call add_debugfs_mem()
unintentionally.
Fixes: 3ccc6cf74d
('cxgb4: Adds support for T6 adapter')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7a76a021cd
commit
21a447637d
@ -2332,10 +2332,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,
|
||||
|
Loading…
Reference in New Issue
Block a user