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
553585f3
Commit
553585f3
authored
Jan 10, 2004
by
Jeff Garzik
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[netdrvr] remove init_etherdev mentions in Doc/SubmittingPatches, atari_pamsnet.c
parent
525e0bcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
Documentation/SubmittingPatches
Documentation/SubmittingPatches
+2
-2
drivers/net/atari_pamsnet.c
drivers/net/atari_pamsnet.c
+0
-2
No files found.
Documentation/SubmittingPatches
View file @
553585f3
...
@@ -239,7 +239,7 @@ Let the compiler optimize away the "no-op" case.
...
@@ -239,7 +239,7 @@ Let the compiler optimize away the "no-op" case.
Simple example, of poor code:
Simple example, of poor code:
dev =
init_etherdev (NULL, 0
);
dev =
alloc_etherdev (sizeof(struct funky_private)
);
if (!dev)
if (!dev)
return -ENODEV;
return -ENODEV;
#ifdef CONFIG_NET_FUNKINESS
#ifdef CONFIG_NET_FUNKINESS
...
@@ -254,7 +254,7 @@ Cleaned-up example:
...
@@ -254,7 +254,7 @@ Cleaned-up example:
#endif
#endif
(in the code itself)
(in the code itself)
dev =
init_etherdev (NULL, 0
);
dev =
alloc_etherdev (sizeof(struct funky_private)
);
if (!dev)
if (!dev)
return -ENODEV;
return -ENODEV;
init_funky_net(dev);
init_funky_net(dev);
...
...
drivers/net/atari_pamsnet.c
View file @
553585f3
...
@@ -110,8 +110,6 @@ static char *version =
...
@@ -110,8 +110,6 @@ static char *version =
#undef READ
#undef READ
#undef WRITE
#undef WRITE
extern
struct
net_device
*
init_etherdev
(
struct
net_device
*
dev
,
int
sizeof_private
);
/* use 0 for production, 1 for verification, >2 for debug
/* use 0 for production, 1 for verification, >2 for debug
*/
*/
#ifndef NET_DEBUG
#ifndef NET_DEBUG
...
...
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