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
f31b6d76
Commit
f31b6d76
authored
Jan 10, 2004
by
Alexander Viro
Committed by
Stephen Hemminger
Jan 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[wan hdlc_x25] eliminated hdlc_to_dev() and hdlc_to_name() uses.
parent
aa7815ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
drivers/net/wan/hdlc_generic.c
drivers/net/wan/hdlc_generic.c
+2
-2
drivers/net/wan/hdlc_x25.c
drivers/net/wan/hdlc_x25.c
+4
-5
include/linux/hdlc.h
include/linux/hdlc.h
+1
-1
No files found.
drivers/net/wan/hdlc_generic.c
View file @
f31b6d76
...
...
@@ -189,7 +189,7 @@ void hdlc_close(struct net_device *dev)
#endif
#ifndef CONFIG_HDLC_X25
#define hdlc_x25_ioctl(
hdlc
, ifr) -ENOSYS
#define hdlc_x25_ioctl(
dev
, ifr) -ENOSYS
#endif
...
...
@@ -221,7 +221,7 @@ int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
case
IF_PROTO_PPP
:
return
hdlc_ppp_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_CISCO
:
return
hdlc_cisco_ioctl
(
dev
,
ifr
);
case
IF_PROTO_FR
:
return
hdlc_fr_ioctl
(
dev
,
ifr
);
case
IF_PROTO_X25
:
return
hdlc_x25_ioctl
(
hdlc
,
ifr
);
case
IF_PROTO_X25
:
return
hdlc_x25_ioctl
(
dev
,
ifr
);
default:
return
-
EINVAL
;
}
}
...
...
drivers/net/wan/hdlc_x25.c
View file @
f31b6d76
...
...
@@ -94,7 +94,6 @@ static void x25_data_transmit(struct net_device *dev, struct sk_buff *skb)
static
int
x25_xmit
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
)
{
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
int
result
;
...
...
@@ -114,7 +113,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev)
else
printk
(
KERN_ERR
"%s: LAPB connect request "
"failed, error code = %i
\n
"
,
hdlc_to_name
(
hdlc
)
,
result
);
dev
->
name
,
result
);
}
break
;
...
...
@@ -126,7 +125,7 @@ static int x25_xmit(struct sk_buff *skb, struct net_device *dev)
else
printk
(
KERN_ERR
"%s: LAPB disconnect request "
"failed, error code = %i
\n
"
,
hdlc_to_name
(
hdlc
)
,
result
);
dev
->
name
,
result
);
}
break
;
...
...
@@ -186,9 +185,9 @@ static int x25_rx(struct sk_buff *skb)
int
hdlc_x25_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
)
int
hdlc_x25_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
)
{
struct
net_device
*
dev
=
hdlc_to_dev
(
hdlc
);
hdlc_device
*
hdlc
=
dev_to_hdlc
(
dev
);
int
result
;
switch
(
ifr
->
ifr_settings
.
type
)
{
...
...
include/linux/hdlc.h
View file @
f31b6d76
...
...
@@ -176,7 +176,7 @@ int hdlc_raw_eth_ioctl(hdlc_device *hdlc, struct ifreq *ifr);
int
hdlc_cisco_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
int
hdlc_ppp_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_fr_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
int
hdlc_x25_ioctl
(
hdlc_device
*
hdlc
,
struct
ifreq
*
ifr
);
int
hdlc_x25_ioctl
(
struct
net_device
*
dev
,
struct
ifreq
*
ifr
);
/* Exported from hdlc.o */
...
...
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