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
ce41525e
Commit
ce41525e
authored
Jun 09, 2002
by
Martin Dalecki
Committed by
Linus Torvalds
Jun 09, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] kill warinigs 14/19
irlap_frame this time. Let me guess they used emacs?!
parent
d7bd8ce5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
192 additions
and
193 deletions
+192
-193
net/irda/irlap_frame.c
net/irda/irlap_frame.c
+192
-193
No files found.
net/irda/irlap_frame.c
View file @
ce41525e
...
@@ -416,7 +416,7 @@ static void irlap_recv_discovery_xid_rsp(struct irlap_cb *self,
...
@@ -416,7 +416,7 @@ static void irlap_recv_discovery_xid_rsp(struct irlap_cb *self,
}
}
if
((
discovery
=
kmalloc
(
sizeof
(
discovery_t
),
GFP_ATOMIC
))
==
NULL
)
{
if
((
discovery
=
kmalloc
(
sizeof
(
discovery_t
),
GFP_ATOMIC
))
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), kmalloc failed!
\n
"
);
WARNING
(
"%s: kmalloc failed!
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
memset
(
discovery
,
0
,
sizeof
(
discovery_t
));
memset
(
discovery
,
0
,
sizeof
(
discovery_t
));
...
@@ -509,7 +509,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
...
@@ -509,7 +509,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
if
(
info
->
s
==
0xff
)
{
if
(
info
->
s
==
0xff
)
{
/* Check if things are sane at this point... */
/* Check if things are sane at this point... */
if
((
discovery_info
==
NULL
)
||
(
skb
->
len
<
3
))
{
if
((
discovery_info
==
NULL
)
||
(
skb
->
len
<
3
))
{
ERROR
(
__FUNCTION__
"(), discovery frame to short!
\n
"
);
ERROR
(
"%s: discovery frame to short!
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
...
@@ -518,7 +518,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
...
@@ -518,7 +518,7 @@ static void irlap_recv_discovery_xid_cmd(struct irlap_cb *self,
*/
*/
discovery
=
kmalloc
(
sizeof
(
discovery_t
),
GFP_ATOMIC
);
discovery
=
kmalloc
(
sizeof
(
discovery_t
),
GFP_ATOMIC
);
if
(
!
discovery
)
{
if
(
!
discovery
)
{
WARNING
(
__FUNCTION__
"(), unable to malloc!
\n
"
);
WARNING
(
"%s: unable to malloc!
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
...
@@ -1281,7 +1281,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
...
@@ -1281,7 +1281,7 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
/* Check if frame is large enough for parsing */
/* Check if frame is large enough for parsing */
if
(
skb
->
len
<
2
)
{
if
(
skb
->
len
<
2
)
{
ERROR
(
__FUNCTION__
"(), frame to short!
\n
"
);
ERROR
(
"%s: frame to short!
\n
"
,
__FUNCTION__
);
dev_kfree_skb
(
skb
);
dev_kfree_skb
(
skb
);
return
-
1
;
return
-
1
;
}
}
...
@@ -1330,9 +1330,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
...
@@ -1330,9 +1330,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
irlap_recv_srej_frame
(
self
,
skb
,
&
info
,
command
);
irlap_recv_srej_frame
(
self
,
skb
,
&
info
,
command
);
break
;
break
;
default:
default:
WARNING
(
__FUNCTION__
WARNING
(
"%s: Unknown S-frame %02x received!
\n
"
,
"() Unknown S-frame %02x received!
\n
"
,
__FUNCTION__
,
info
.
control
);
info
.
control
);
break
;
break
;
}
}
goto
out
;
goto
out
;
...
@@ -1369,8 +1368,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
...
@@ -1369,8 +1368,8 @@ int irlap_driver_rcv(struct sk_buff *skb, struct net_device *dev,
irlap_recv_ui_frame
(
self
,
skb
,
&
info
);
irlap_recv_ui_frame
(
self
,
skb
,
&
info
);
break
;
break
;
default:
default:
WARNING
(
__FUNCTION__
"(), Unknown frame %02x received!
\n
"
,
WARNING
(
"%s: Unknown frame %02x received!
\n
"
,
info
.
control
);
__FUNCTION__
,
info
.
control
);
break
;
break
;
}
}
out:
out:
...
...
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