Commit 96bde926 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64-merge file.c warning

Just an gcc 3.1 warning fix. It now warns about __FUNCTION__ string
concatenation. Also remove the check because it does not seem to trigger
ever.

-Andi
parent 280a2634
......@@ -37,7 +37,7 @@ void free_fd_array(struct file **array, int num)
int size = num * sizeof(struct file *);
if (!array) {
printk (KERN_ERR __FUNCTION__ "array = 0 (num = %d)\n", num);
printk (KERN_ERR "free_fd_array: array = 0 (num = %d)\n", num);
return;
}
......@@ -145,11 +145,6 @@ void free_fdset(fd_set *array, int num)
{
int size = num / 8;
if (!array) {
printk (KERN_ERR __FUNCTION__ "array = 0 (num = %d)\n", num);
return;
}
if (num <= __FD_SETSIZE) /* Don't free an embedded fdset */
return;
else if (size <= PAGE_SIZE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment