mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
can: remove obsolete version strings
As pointed out by Jakub Kicinski here: http://lore.kernel.org/r/20201009175751.5c54097f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com this patch removes the obsolete version information of the different CAN protocols and the AF_CAN core module. Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net> Link: https://lore.kernel.org/r/20201012074354.25839-2-socketcan@hartkopp.net Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
ac911bfeb3
commit
f726f3d371
8 changed files with 5 additions and 33 deletions
|
@ -54,7 +54,6 @@
|
|||
* proc filenames for the PF_CAN core
|
||||
*/
|
||||
|
||||
#define CAN_PROC_VERSION "version"
|
||||
#define CAN_PROC_STATS "stats"
|
||||
#define CAN_PROC_RESET_STATS "reset_stats"
|
||||
#define CAN_PROC_RCVLIST_ALL "rcvlist_all"
|
||||
|
@ -293,12 +292,6 @@ static int can_reset_stats_proc_show(struct seq_file *m, void *v)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int can_version_proc_show(struct seq_file *m, void *v)
|
||||
{
|
||||
seq_printf(m, "%s\n", CAN_VERSION_STRING);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx,
|
||||
struct net_device *dev,
|
||||
struct can_dev_rcv_lists *dev_rcv_lists)
|
||||
|
@ -441,8 +434,6 @@ void can_init_proc(struct net *net)
|
|||
}
|
||||
|
||||
/* own procfs entries from the AF_CAN core */
|
||||
net->can.pde_version = proc_create_net_single(CAN_PROC_VERSION, 0644,
|
||||
net->can.proc_dir, can_version_proc_show, NULL);
|
||||
net->can.pde_stats = proc_create_net_single(CAN_PROC_STATS, 0644,
|
||||
net->can.proc_dir, can_stats_proc_show, NULL);
|
||||
net->can.pde_reset_stats = proc_create_net_single(CAN_PROC_RESET_STATS,
|
||||
|
@ -471,9 +462,6 @@ void can_init_proc(struct net *net)
|
|||
*/
|
||||
void can_remove_proc(struct net *net)
|
||||
{
|
||||
if (net->can.pde_version)
|
||||
remove_proc_entry(CAN_PROC_VERSION, net->can.proc_dir);
|
||||
|
||||
if (net->can.pde_stats)
|
||||
remove_proc_entry(CAN_PROC_STATS, net->can.proc_dir);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue