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
8f0ee7e1
Commit
8f0ee7e1
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 15/19
irlmp abused __FUNCTION__ and the space bar as well.
parent
ce41525e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
198 deletions
+186
-198
net/irda/irlmp.c
net/irda/irlmp.c
+186
-198
No files found.
net/irda/irlmp.c
View file @
8f0ee7e1
...
@@ -152,7 +152,7 @@ struct lsap_cb *irlmp_open_lsap(__u8 slsap_sel, notify_t *notify, __u8 pid)
...
@@ -152,7 +152,7 @@ struct lsap_cb *irlmp_open_lsap(__u8 slsap_sel, notify_t *notify, __u8 pid)
/* Allocate new instance of a LSAP connection */
/* Allocate new instance of a LSAP connection */
self
=
kmalloc
(
sizeof
(
struct
lsap_cb
),
GFP_ATOMIC
);
self
=
kmalloc
(
sizeof
(
struct
lsap_cb
),
GFP_ATOMIC
);
if
(
self
==
NULL
)
{
if
(
self
==
NULL
)
{
ERROR
(
__FUNCTION__
"(), can't allocate memory"
);
ERROR
(
"%s: can't allocate memory"
,
__FUNCTION__
);
return
NULL
;
return
NULL
;
}
}
memset
(
self
,
0
,
sizeof
(
struct
lsap_cb
));
memset
(
self
,
0
,
sizeof
(
struct
lsap_cb
));
...
@@ -278,7 +278,7 @@ void irlmp_register_link(struct irlap_cb *irlap, __u32 saddr, notify_t *notify)
...
@@ -278,7 +278,7 @@ void irlmp_register_link(struct irlap_cb *irlap, __u32 saddr, notify_t *notify)
*/
*/
lap
=
kmalloc
(
sizeof
(
struct
lap_cb
),
GFP_KERNEL
);
lap
=
kmalloc
(
sizeof
(
struct
lap_cb
),
GFP_KERNEL
);
if
(
lap
==
NULL
)
{
if
(
lap
==
NULL
)
{
ERROR
(
__FUNCTION__
"(), unable to kmalloc
\n
"
);
ERROR
(
"%s: unable to kmalloc
\n
"
,
__FUNCTION__
);
return
;
return
;
}
}
memset
(
lap
,
0
,
sizeof
(
struct
lap_cb
));
memset
(
lap
,
0
,
sizeof
(
struct
lap_cb
));
...
@@ -770,8 +770,8 @@ void irlmp_do_discovery(int nslots)
...
@@ -770,8 +770,8 @@ void irlmp_do_discovery(int nslots)
/* Make sure the value is sane */
/* Make sure the value is sane */
if
((
nslots
!=
1
)
&&
(
nslots
!=
6
)
&&
(
nslots
!=
8
)
&&
(
nslots
!=
16
)){
if
((
nslots
!=
1
)
&&
(
nslots
!=
6
)
&&
(
nslots
!=
8
)
&&
(
nslots
!=
16
)){
WARNING
(
__FUNCTION__
WARNING
(
"%s: invalid value for number of slots!
\n
"
,
"(), invalid value for number of slots!
\n
"
);
__FUNCTION__
);
nslots
=
sysctl_discovery_slots
=
8
;
nslots
=
sysctl_discovery_slots
=
8
;
}
}
...
@@ -864,9 +864,6 @@ struct irda_device_info *irlmp_get_discoveries(int *pn, __u16 mask, int nslots)
...
@@ -864,9 +864,6 @@ struct irda_device_info *irlmp_get_discoveries(int *pn, __u16 mask, int nslots)
#if 0
#if 0
/*
/*
* Function irlmp_check_services (discovery)
* Function irlmp_check_services (discovery)
*
*
*
*/
*/
void irlmp_check_services(discovery_t *discovery)
void irlmp_check_services(discovery_t *discovery)
{
{
...
@@ -1071,9 +1068,6 @@ void irlmp_data_indication(struct lsap_cb *self, struct sk_buff *skb)
...
@@ -1071,9 +1068,6 @@ void irlmp_data_indication(struct lsap_cb *self, struct sk_buff *skb)
/*
/*
* Function irlmp_udata_request (self, skb)
* Function irlmp_udata_request (self, skb)
*
*
*
*/
*/
int
irlmp_udata_request
(
struct
lsap_cb
*
self
,
struct
sk_buff
*
skb
)
int
irlmp_udata_request
(
struct
lsap_cb
*
self
,
struct
sk_buff
*
skb
)
{
{
...
@@ -1114,9 +1108,6 @@ void irlmp_udata_indication(struct lsap_cb *self, struct sk_buff *skb)
...
@@ -1114,9 +1108,6 @@ void irlmp_udata_indication(struct lsap_cb *self, struct sk_buff *skb)
/*
/*
* Function irlmp_connless_data_request (self, skb)
* Function irlmp_connless_data_request (self, skb)
*
*
*
*/
*/
#ifdef CONFIG_IRDA_ULTRA
#ifdef CONFIG_IRDA_ULTRA
int
irlmp_connless_data_request
(
struct
lsap_cb
*
self
,
struct
sk_buff
*
skb
)
int
irlmp_connless_data_request
(
struct
lsap_cb
*
self
,
struct
sk_buff
*
skb
)
...
@@ -1802,6 +1793,3 @@ int irlmp_proc_read(char *buf, char **start, off_t offset, int len)
...
@@ -1802,6 +1793,3 @@ int irlmp_proc_read(char *buf, char **start, off_t offset, int len)
}
}
#endif
/* PROC_FS */
#endif
/* PROC_FS */
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