Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
719c443b
Commit
719c443b
authored
May 13, 2016
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devlink: remove unused code
Unused code causes warnings, removed.
parent
8a781d7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
devlink/devlink.c
devlink/devlink.c
+0
-42
No files found.
devlink/devlink.c
View file @
719c443b
...
...
@@ -634,35 +634,6 @@ static int dl_argv_parse_put(struct nlmsghdr *nlh, struct dl *dl,
return
0
;
}
static
bool
dl_dump_filter
(
struct
dl
*
dl
,
struct
nlattr
**
tb
)
{
struct
dl_opts
*
opts
=
&
dl
->
opts
;
struct
nlattr
*
attr_bus_name
=
tb
[
DEVLINK_ATTR_BUS_NAME
];
struct
nlattr
*
attr_dev_name
=
tb
[
DEVLINK_ATTR_DEV_NAME
];
struct
nlattr
*
attr_port_index
=
tb
[
DEVLINK_ATTR_PORT_INDEX
];
if
(
opts
->
present
&
DL_OPT_HANDLE
&&
attr_bus_name
&&
attr_dev_name
)
{
const
char
*
bus_name
=
mnl_attr_get_str
(
attr_bus_name
);
const
char
*
dev_name
=
mnl_attr_get_str
(
attr_dev_name
);
if
(
strcmp
(
bus_name
,
opts
->
bus_name
)
!=
0
||
strcmp
(
dev_name
,
opts
->
dev_name
)
!=
0
)
return
false
;
}
if
(
opts
->
present
&
DL_OPT_HANDLEP
&&
attr_bus_name
&&
attr_dev_name
&&
attr_port_index
)
{
const
char
*
bus_name
=
mnl_attr_get_str
(
attr_bus_name
);
const
char
*
dev_name
=
mnl_attr_get_str
(
attr_dev_name
);
uint32_t
port_index
=
mnl_attr_get_u32
(
attr_port_index
);
if
(
strcmp
(
bus_name
,
opts
->
bus_name
)
!=
0
||
strcmp
(
dev_name
,
opts
->
dev_name
)
!=
0
||
port_index
!=
opts
->
port_index
)
return
false
;
}
return
true
;
}
static
void
cmd_dev_help
(
void
)
{
...
...
@@ -714,19 +685,6 @@ no_nice_names:
__pr_out_port_handle
(
bus_name
,
dev_name
,
port_index
);
}
static
void
pr_out_port_handle_nice
(
struct
dl
*
dl
,
struct
nlattr
**
tb
)
{
const
char
*
bus_name
;
const
char
*
dev_name
;
uint32_t
port_index
;
bus_name
=
mnl_attr_get_str
(
tb
[
DEVLINK_ATTR_BUS_NAME
]);
dev_name
=
mnl_attr_get_str
(
tb
[
DEVLINK_ATTR_DEV_NAME
]);
port_index
=
mnl_attr_get_u32
(
tb
[
DEVLINK_ATTR_PORT_INDEX
]);
__pr_out_port_handle_nice
(
dl
,
bus_name
,
dev_name
,
port_index
);
}
static
void
pr_out_dev
(
struct
nlattr
**
tb
)
{
pr_out_handle
(
tb
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment