lkml.org 
[lkml]   [2004]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] PnP Updates for 2.6.4-mm2
[ISAPNP] Remove uneeded MOD_INC/DEC_USE_COUNT

From: Christoph Hellwig <hch@lst.de>

isapnp_cfg_begin and isapnp_cfg_end are exported symbols, so if any
module using them is loaded isapnp.o can't be unloaded anyway.


--- 1.43/drivers/pnp/isapnp/core.c Sun Sep 21 21:10:18 2003
+++ edited/drivers/pnp/isapnp/core.c Sun Oct 5 16:17:52 2003
@@ -934,7 +934,6 @@
{
if (csn < 1 || csn > 10 || logdev > 10)
return -EINVAL;
- MOD_INC_USE_COUNT;
down(&isapnp_cfg_mutex);
isapnp_wait();
isapnp_key();
@@ -962,7 +961,6 @@
{
isapnp_wait();
up(&isapnp_cfg_mutex);
- MOD_DEC_USE_COUNT;
return 0;
}

#undef SPRINTF


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.033 / U:0.636 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site