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
nexedi
linux
Commits
90ce6db3
Commit
90ce6db3
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 warnings 17/19
irttp.c was infected too.
parent
2a6edab9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
186 deletions
+186
-186
net/irda/irttp.c
net/irda/irttp.c
+186
-186
No files found.
net/irda/irttp.c
View file @
90ce6db3
...
...
@@ -94,7 +94,7 @@ int __init irttp_init(void)
irttp
->
tsaps
=
hashbin_new
(
HB_LOCAL
);
if
(
!
irttp
->
tsaps
)
{
ERROR
(
__FUNCTION__
"(), can't allocate IrTTP hashbin!
\n
"
);
ERROR
(
"%s: can't allocate IrTTP hashbin!
\n
"
,
__FUNCTION__
);
return
-
ENOMEM
;
}
...
...
@@ -421,7 +421,7 @@ struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify)
*/
lsap
=
irlmp_open_lsap
(
stsap_sel
,
&
ttp_notify
,
0
);
if
(
lsap
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), unable to allocate LSAP!!
\n
"
);
WARNING
(
"%s: unable to allocate LSAP!!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
...
...
@@ -497,7 +497,7 @@ int irttp_close_tsap(struct tsap_cb *self)
if
(
self
->
connected
)
{
/* Check if disconnect is not pending */
if
(
!
test_bit
(
0
,
&
self
->
disconnect_pend
))
{
WARNING
(
__FUNCTION__
"(), TSAP still connected!
\n
"
);
WARNING
(
"%s: TSAP still connected!
\n
"
,
__FUNCTION__
);
irttp_disconnect_request
(
self
,
NULL
,
P_NORMAL
);
}
self
->
close_pend
=
TRUE
;
...
...
@@ -571,7 +571,7 @@ int irttp_data_request(struct tsap_cb *self, struct sk_buff *skb)
/* Check that nothing bad happens */
if
((
skb
->
len
==
0
)
||
(
!
self
->
connected
))
{
WARNING
(
__FUNCTION__
"(), No data, or not connected
\n
"
);
WARNING
(
"%s: No data, or not connected
\n
"
,
__FUNCTION__
);
return
-
ENOTCONN
;
}
...
...
@@ -580,8 +580,8 @@ int irttp_data_request(struct tsap_cb *self, struct sk_buff *skb)
* inside an IrLAP frame
*/
if
((
self
->
tx_max_sdu_size
==
0
)
&&
(
skb
->
len
>
self
->
max_seg_size
))
{
ERROR
(
__FUNCTION__
"(), SAR disabled, and data is to large for IrLAP!
\n
"
);
ERROR
(
"%s: SAR disabled, and data is to large for IrLAP!
\n
"
,
__FUNCTION__
);
return
-
EMSGSIZE
;
}
...
...
@@ -593,8 +593,8 @@ int irttp_data_request(struct tsap_cb *self, struct sk_buff *skb)
(
self
->
tx_max_sdu_size
!=
TTP_SAR_UNBOUND
)
&&
(
skb
->
len
>
self
->
tx_max_sdu_size
))
{
ERROR
(
__FUNCTION__
"(), SAR enabled, "
"but data is larger than TxMaxSduSize!
\n
"
);
ERROR
(
"%s: SAR enabled, but data is larger than TxMaxSduSize!
\n
"
,
__FUNCTION__
);
return
-
EMSGSIZE
;
}
/*
...
...
@@ -1178,8 +1178,8 @@ static void irttp_connect_confirm(void *instance, void *sap,
/* Any errors in the parameter list? */
if
(
ret
<
0
)
{
WARNING
(
__FUNCTION__
"(), error extracting parameters
\n
"
);
WARNING
(
"%s: error extracting parameters
\n
"
,
__FUNCTION__
);
dev_kfree_skb
(
skb
);
/* Do not accept this connection attempt */
...
...
@@ -1253,8 +1253,8 @@ void irttp_connect_indication(void *instance, void *sap, struct qos_info *qos,
/* Any errors in the parameter list? */
if
(
ret
<
0
)
{
WARNING
(
__FUNCTION__
"(), error extracting parameters
\n
"
);
WARNING
(
"%s: error extracting parameters
\n
"
,
__FUNCTION__
);
dev_kfree_skb
(
skb
);
/* Do not accept this connection attempt */
...
...
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