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
1 changed files with 2 additions and 1 deletions
|
@ -2332,11 +2332,12 @@ 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,
|
||||
&flash_debugfs_fops, adap->params.sf_size);
|
||||
|
|
Loading…
Reference in a new issue