[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-24
Subject: Cset exclude: Achim_Leubner@adaptec.com|ChangeSet|20040928105422|00490
From: Linux Kernel Mailing List <linux-kernel () vger ! kernel ! org>
Date: 2004-09-28 11:11:17
Message-ID: 200409281401.i8SE1ZgN006846 () hera ! kernel ! org
[Download RAW message or body]
ChangeSet 1.1569, 2004/09/28 08:11:17-03:00, marcelo@logos.cnet
Cset exclude: Achim_Leubner@adaptec.com|ChangeSet|20040928105422|00490
gdth_proc.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
diff -Nru a/drivers/scsi/gdth_proc.c b/drivers/scsi/gdth_proc.c
--- a/drivers/scsi/gdth_proc.c 2004-09-28 07:01:38 -07:00
+++ b/drivers/scsi/gdth_proc.c 2004-09-28 07:01:38 -07:00
@@ -7,12 +7,10 @@
#include <linux/completion.h>
#endif
-int gdth_alloc, gdth_free;
-
int gdth_proc_info(char *buffer,char **start,off_t offset,int length,
int hostno,int inout)
{
- int hanum,busnum,i, ret = 0;
+ int hanum,busnum,i;
TRACE2(("gdth_proc_info() length %d ha %d offs %d inout %d\n",
length,hostno,(int)offset,inout));
@@ -29,11 +27,8 @@
if (inout)
return(gdth_set_info(buffer,length,i,hanum,busnum));
- else {
- ret = gdth_get_info(buffer,start,offset,length,i,hanum,busnum);
- printk(KERN_ERR "gdth_alloc:%d gdth_free:%d\n", gdth_alloc, gdth_free);
- return ret;
- }
+ else
+ return(gdth_get_info(buffer,start,offset,length,i,hanum,busnum));
}
static int gdth_set_info(char *buffer,int length,int vh,int hanum,int busnum)
@@ -712,9 +707,6 @@
memset(cmnd, 0xff, 12);
memset(&gdtcmd, 0, sizeof(gdth_cmd_str));
-
- gdth_alloc = 0; gdth_free = 0;
-
TRACE2(("gdth_get_info() ha %d bus %d\n",hanum,busnum));
ha = HADATA(gdth_ctr_tab[hanum]);
@@ -1329,7 +1321,6 @@
#if LINUX_VERSION_CODE >= 0x020322
ret_val = (void *) __get_free_pages(GFP_ATOMIC | GFP_DMA,
GDTH_SCRATCH_ORD);
- gdth_alloc++;
#else
ret_val = scsi_init_malloc(GDTH_SCRATCH, GFP_ATOMIC | GFP_DMA);
#endif
@@ -1352,7 +1343,6 @@
} else {
#if LINUX_VERSION_CODE >= 0x020322
free_pages((unsigned long)buf, GDTH_SCRATCH_ORD);
- gdth_free++;
#else
scsi_init_free((void *)buf, GDTH_SCRATCH);
#endif
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-24" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic