diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-08-08 22:15:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-10 14:26:26 -0700 |
commit | 21a447637d28eb824a1163c1fc5f41ffa4b28e33 (patch) | |
tree | f6f1cb1da8532bcb108acc4f61d73df9eeda6ce7 | |
parent | 7a76a021cd5a292be875fbc616daf03eab1e6996 (diff) | |
download | linux-stable-21a447637d28eb824a1163c1fc5f41ffa4b28e33.tar.gz linux-stable-21a447637d28eb824a1163c1fc5f41ffa4b28e33.tar.bz2 linux-stable-21a447637d28eb824a1163c1fc5f41ffa4b28e33.zip |
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')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c index a11485fbb33f..c3c7db41819d 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c @@ -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, |