|
54 | 54 | * proc filenames for the PF_CAN core |
55 | 55 | */ |
56 | 56 |
|
57 | | -#define CAN_PROC_VERSION "version" |
58 | 57 | #define CAN_PROC_STATS "stats" |
59 | 58 | #define CAN_PROC_RESET_STATS "reset_stats" |
60 | 59 | #define CAN_PROC_RCVLIST_ALL "rcvlist_all" |
@@ -293,12 +292,6 @@ static int can_reset_stats_proc_show(struct seq_file *m, void *v) |
293 | 292 | return 0; |
294 | 293 | } |
295 | 294 |
|
296 | | -static int can_version_proc_show(struct seq_file *m, void *v) |
297 | | -{ |
298 | | - seq_printf(m, "%s\n", CAN_VERSION_STRING); |
299 | | - return 0; |
300 | | -} |
301 | | - |
302 | 295 | static inline void can_rcvlist_proc_show_one(struct seq_file *m, int idx, |
303 | 296 | struct net_device *dev, |
304 | 297 | struct can_dev_rcv_lists *dev_rcv_lists) |
@@ -441,8 +434,6 @@ void can_init_proc(struct net *net) |
441 | 434 | } |
442 | 435 |
|
443 | 436 | /* own procfs entries from the AF_CAN core */ |
444 | | - net->can.pde_version = proc_create_net_single(CAN_PROC_VERSION, 0644, |
445 | | - net->can.proc_dir, can_version_proc_show, NULL); |
446 | 437 | net->can.pde_stats = proc_create_net_single(CAN_PROC_STATS, 0644, |
447 | 438 | net->can.proc_dir, can_stats_proc_show, NULL); |
448 | 439 | net->can.pde_reset_stats = proc_create_net_single(CAN_PROC_RESET_STATS, |
@@ -471,9 +462,6 @@ void can_init_proc(struct net *net) |
471 | 462 | */ |
472 | 463 | void can_remove_proc(struct net *net) |
473 | 464 | { |
474 | | - if (net->can.pde_version) |
475 | | - remove_proc_entry(CAN_PROC_VERSION, net->can.proc_dir); |
476 | | - |
477 | 465 | if (net->can.pde_stats) |
478 | 466 | remove_proc_entry(CAN_PROC_STATS, net->can.proc_dir); |
479 | 467 |
|
|
0 commit comments