diff options
author | David S. Miller <davem@davemloft.net> | 2006-01-08 04:03:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:58 -0500 |
commit | cc398c2eae35b13d77b77337136325edc6ca94ca (patch) | |
tree | c7b502c0cd1f51e462f1861b4c46921941689faf /drivers | |
parent | 5160ee6fc891a9ca114be0e90fa6655647bb64b2 (diff) |
[PATCH] drivers/connector/cn_proc.c typos
The parameter to put_cpu_var() is unreferenced by the implementation, and
the compiler doesn't try to comprehend comments, so this wouldn't cause any
problem, but if bugged me enough to post a fix :-)
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/connector/cn_proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c index 969d2b4aaec0..385e52930c02 100644 --- a/drivers/connector/cn_proc.c +++ b/drivers/connector/cn_proc.c | |||
@@ -34,14 +34,14 @@ | |||
34 | static atomic_t proc_event_num_listeners = ATOMIC_INIT(0); | 34 | static atomic_t proc_event_num_listeners = ATOMIC_INIT(0); |
35 | static struct cb_id cn_proc_event_id = { CN_IDX_PROC, CN_VAL_PROC }; | 35 | static struct cb_id cn_proc_event_id = { CN_IDX_PROC, CN_VAL_PROC }; |
36 | 36 | ||
37 | /* proc_counts is used as the sequence number of the netlink message */ | 37 | /* proc_event_counts is used as the sequence number of the netlink message */ |
38 | static DEFINE_PER_CPU(__u32, proc_event_counts) = { 0 }; | 38 | static DEFINE_PER_CPU(__u32, proc_event_counts) = { 0 }; |
39 | 39 | ||
40 | static inline void get_seq(__u32 *ts, int *cpu) | 40 | static inline void get_seq(__u32 *ts, int *cpu) |
41 | { | 41 | { |
42 | *ts = get_cpu_var(proc_event_counts)++; | 42 | *ts = get_cpu_var(proc_event_counts)++; |
43 | *cpu = smp_processor_id(); | 43 | *cpu = smp_processor_id(); |
44 | put_cpu_var(proc_counts); | 44 | put_cpu_var(proc_event_counts); |
45 | } | 45 | } |
46 | 46 | ||
47 | void proc_fork_connector(struct task_struct *task) | 47 | void proc_fork_connector(struct task_struct *task) |