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
67b5d6ea
Commit
67b5d6ea
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 11/19
irias_object missused __FUNCTION__ too.
parent
3e9048cd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
54 deletions
+50
-54
net/irda/irias_object.c
net/irda/irias_object.c
+50
-54
No files found.
net/irda/irias_object.c
View file @
67b5d6ea
...
...
@@ -59,7 +59,7 @@ char *strndup(char *str, int max)
/* Allocate new string */
new_str
=
kmalloc
(
len
+
1
,
GFP_ATOMIC
);
if
(
new_str
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
...
...
@@ -272,7 +272,7 @@ int irias_object_change_attribute(char *obj_name, char *attrib_name,
/* Find object */
obj
=
hashbin_find
(
objects
,
0
,
obj_name
);
if
(
obj
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to find object: %s
\n
"
,
WARNING
(
"%s: Unable to find object: %s
\n
"
,
__FUNCTION__
,
obj_name
);
return
-
1
;
}
...
...
@@ -280,7 +280,7 @@ int irias_object_change_attribute(char *obj_name, char *attrib_name,
/* Find attribute */
attrib
=
hashbin_find
(
obj
->
attribs
,
0
,
attrib_name
);
if
(
attrib
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to find attribute: %s
\n
"
,
WARNING
(
"%s: Unable to find attribute: %s
\n
"
,
__FUNCTION__
,
attrib_name
);
return
-
1
;
}
...
...
@@ -319,7 +319,7 @@ void irias_add_integer_attrib(struct ias_object *obj, char *name, int value,
attrib
=
(
struct
ias_attrib
*
)
kmalloc
(
sizeof
(
struct
ias_attrib
),
GFP_ATOMIC
);
if
(
attrib
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to allocate attribute!
\n
"
);
WARNING
(
"%s: Unable to allocate attribute!
\n
"
,
__FUNCTION__
);
return
;
}
memset
(
attrib
,
0
,
sizeof
(
struct
ias_attrib
));
...
...
@@ -354,8 +354,7 @@ void irias_add_octseq_attrib(struct ias_object *obj, char *name, __u8 *octets,
attrib
=
(
struct
ias_attrib
*
)
kmalloc
(
sizeof
(
struct
ias_attrib
),
GFP_ATOMIC
);
if
(
attrib
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to allocate attribute!
\n
"
);
WARNING
(
"%s: Unable to allocate attribute!
\n
"
,
__FUNCTION__
);
return
;
}
memset
(
attrib
,
0
,
sizeof
(
struct
ias_attrib
));
...
...
@@ -388,7 +387,7 @@ void irias_add_string_attrib(struct ias_object *obj, char *name, char *value,
attrib
=
(
struct
ias_attrib
*
)
kmalloc
(
sizeof
(
struct
ias_attrib
),
GFP_ATOMIC
);
if
(
attrib
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to allocate attribute!
\n
"
);
WARNING
(
"%s: Unable to allocate attribute!
\n
"
,
__FUNCTION__
);
return
;
}
memset
(
attrib
,
0
,
sizeof
(
struct
ias_attrib
));
...
...
@@ -413,7 +412,7 @@ struct ias_value *irias_new_integer_value(int integer)
value
=
kmalloc
(
sizeof
(
struct
ias_value
),
GFP_ATOMIC
);
if
(
value
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
memset
(
value
,
0
,
sizeof
(
struct
ias_value
));
...
...
@@ -438,7 +437,7 @@ struct ias_value *irias_new_string_value(char *string)
value
=
kmalloc
(
sizeof
(
struct
ias_value
),
GFP_ATOMIC
);
if
(
value
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
memset
(
value
,
0
,
sizeof
(
struct
ias_value
));
...
...
@@ -465,7 +464,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len)
value
=
kmalloc
(
sizeof
(
struct
ias_value
),
GFP_ATOMIC
);
if
(
value
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
memset
(
value
,
0
,
sizeof
(
struct
ias_value
));
...
...
@@ -478,7 +477,7 @@ struct ias_value *irias_new_octseq_value(__u8 *octseq , int len)
value
->
t
.
oct_seq
=
kmalloc
(
len
,
GFP_ATOMIC
);
if
(
value
->
t
.
oct_seq
==
NULL
){
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
kfree
(
value
);
return
NULL
;
}
...
...
@@ -492,7 +491,7 @@ struct ias_value *irias_new_missing_value(void)
value
=
kmalloc
(
sizeof
(
struct
ias_value
),
GFP_ATOMIC
);
if
(
value
==
NULL
)
{
WARNING
(
__FUNCTION__
"(), Unable to kmalloc!
\n
"
);
WARNING
(
"%s: Unable to kmalloc!
\n
"
,
__FUNCTION__
);
return
NULL
;
}
memset
(
value
,
0
,
sizeof
(
struct
ias_value
));
...
...
@@ -536,6 +535,3 @@ void irias_delete_value(struct ias_value *value)
}
kfree
(
value
);
}
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