Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
linux
Commits
b249513e
Commit
b249513e
authored
Jan 09, 2012
by
Ben Hutchings
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sfc: Remove obsolete function efx_dev_name()
Signed-off-by:
Ben Hutchings
<
bhutchings@solarflare.com
>
parent
94813b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/net_driver.h
+0
-9
No files found.
drivers/net/ethernet/sfc/net_driver.h
View file @
b249513e
...
@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx)
...
@@ -791,15 +791,6 @@ static inline int efx_dev_registered(struct efx_nic *efx)
return
efx
->
net_dev
->
reg_state
==
NETREG_REGISTERED
;
return
efx
->
net_dev
->
reg_state
==
NETREG_REGISTERED
;
}
}
/* Net device name, for inclusion in log messages if it has been registered.
* Use efx->name not efx->net_dev->name so that races with (un)registration
* are harmless.
*/
static
inline
const
char
*
efx_dev_name
(
struct
efx_nic
*
efx
)
{
return
efx_dev_registered
(
efx
)
?
efx
->
name
:
""
;
}
static
inline
unsigned
int
efx_port_num
(
struct
efx_nic
*
efx
)
static
inline
unsigned
int
efx_port_num
(
struct
efx_nic
*
efx
)
{
{
return
efx
->
net_dev
->
dev_id
;
return
efx
->
net_dev
->
dev_id
;
...
...
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