Commit 5abb19e6 authored by Arne Øslebø's avatar Arne Øslebø
Browse files

removed variable that is no longer needed

git-svn-id: file:///home/svn/mapi/trunk@368 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent 2e4c3e10
......@@ -41,7 +41,6 @@ typedef struct dag_instance {
mapi_offline_device_status_t *offline_status;
mapid_hw_info_t hwinfo;
mapidlib_instance_t mapidlib;
int active; //Workaround for possible race condition when deleting a driver
} dag_instance_t;
flist_t *devlist;
......@@ -73,7 +72,6 @@ int mapidrv_add_device(mapi_offline_device_status_t *olstatus,char *devname, int
i->hwinfo.offline=0;
i->hwinfo.gflist=gflist;
i->offline_status = olstatus;
i->active=1;
if(devid<0)
i->hwinfo.offline = 1;
......@@ -90,7 +88,6 @@ int mapidrv_delete_device(int devid)
if (i!=NULL) {
int err=0;
i->active=0;
if (i->th_proc && pthread_equal(i->th_proc, pthread_self())==0) {
DEBUG_CMD(printf("Calling thread != th_proc (%lu != %lu), canceling [%s:%d]\n",i->th_proc,pthread_self(),__FILE__,__LINE__));
......@@ -146,11 +143,8 @@ process_pkts(void *buf,unsigned len, dag_instance_t *i)
rec = (dag_record_t *) buf;
rlen = ntohs (rec->rlen);
if(!i->active)
return len;
while (c + rlen < len && i->active)
while (c + rlen < len)
{
char *p = buf;
buf = p + rlen;
......
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