lkml.org 
[lkml]   [2021]   [Feb]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[bug report] octeontx2-af: cn10k: Identical code for different branches
Hi,

In file drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c, function rvu_dbg_init()
the same code is executed for both branches:

2431 if (is_rvu_otx2(rvu))
2432 debugfs_create_file("rvu_pf_cgx_map", 0444, rvu->rvu_dbg.root,
2433 rvu, &rvu_dbg_rvu_pf_cgx_map_fops);
2434 else
2435 debugfs_create_file("rvu_pf_cgx_map", 0444, rvu->rvu_dbg.root,
2436 rvu, &rvu_dbg_rvu_pf_cgx_map_fops);

This issue was introduced by commit 91c6945ea1f9 ("octeontx2-af: cn10k: Add RPM MAC support")

What's the right solution for this?

Thanks
---
Gustavo

\
 
 \ /
  Last update: 2021-02-12 21:03    [W:0.041 / U:3.764 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site