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
nexedi
linux
Commits
6888eb92
Commit
6888eb92
authored
Feb 25, 2003
by
Christoph Hellwig
Committed by
Linus Torvalds
Feb 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] remove unused variables from the i2c core
(from lm_sensors CVS)
parent
423646f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
drivers/i2c/i2c-core.c
drivers/i2c/i2c-core.c
+0
-7
No files found.
drivers/i2c/i2c-core.c
View file @
6888eb92
...
...
@@ -61,11 +61,9 @@ static DECLARE_MUTEX(driver_lock);
/**** adapter list */
static
struct
i2c_adapter
*
adapters
[
I2C_ADAP_MAX
];
static
int
adap_count
;
/**** drivers list */
static
struct
i2c_driver
*
drivers
[
I2C_DRIVER_MAX
];
static
int
driver_count
;
/**** debug level */
static
int
i2c_debug
;
...
...
@@ -116,7 +114,6 @@ int i2c_add_adapter(struct i2c_adapter *adap)
}
adapters
[
i
]
=
adap
;
adap_count
++
;
ADAP_UNLOCK
();
/* init data types */
...
...
@@ -161,7 +158,6 @@ int i2c_add_adapter(struct i2c_adapter *adap)
ERROR1:
ADAP_LOCK
();
adapters
[
i
]
=
NULL
;
adap_count
--
;
ERROR0:
ADAP_UNLOCK
();
return
res
;
...
...
@@ -227,7 +223,6 @@ int i2c_del_adapter(struct i2c_adapter *adap)
#endif
/* def CONFIG_PROC_FS */
adapters
[
i
]
=
NULL
;
adap_count
--
;
ADAP_UNLOCK
();
DEB
(
printk
(
KERN_DEBUG
"i2c-core.o: adapter unregistered: %s
\n
"
,
adap
->
name
));
...
...
@@ -265,7 +260,6 @@ int i2c_add_driver(struct i2c_driver *driver)
}
drivers
[
i
]
=
driver
;
driver_count
++
;
DRV_UNLOCK
();
/* driver was successfully added */
...
...
@@ -361,7 +355,6 @@ int i2c_del_driver(struct i2c_driver *driver)
}
ADAP_UNLOCK
();
drivers
[
i
]
=
NULL
;
driver_count
--
;
DRV_UNLOCK
();
DEB
(
printk
(
KERN_DEBUG
"i2c-core.o: driver unregistered: %s
\n
"
,
driver
->
name
));
...
...
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