aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/connector
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-01-04 04:59:42 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:00:40 -0500
commit6e32814bc89e7103e2b75b841155faf51f60a8f1 (patch)
tree8671823df2eb91152f7abd03467e6a2432da0468 /drivers/connector
parent96a899655e2c3ba53f083eda69706ee4eb05271f (diff)
[CONNECTOR]: Cleanup struct cn_callback_entry
- 'cb' is a fake struct member. In a previous patch struct cn_callback was renamed to cn_callback_id, so 'cb' should have been deleted at that time. - 'nls' isn't used and is redundant, we can retrieve this data through cn_callback_entry.pdev->nls. - 'seq' and 'group' should be u32, as they are declared to be u32 in other places. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/connector')
-rw-r--r--drivers/connector/cn_queue.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/connector/cn_queue.c b/drivers/connector/cn_queue.c
index dbda08c7b3db..5732ca3259f9 100644
--- a/drivers/connector/cn_queue.c
+++ b/drivers/connector/cn_queue.c
@@ -104,7 +104,6 @@ int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id
104 return -EINVAL; 104 return -EINVAL;
105 } 105 }
106 106
107 cbq->nls = dev->nls;
108 cbq->seq = 0; 107 cbq->seq = 0;
109 cbq->group = cbq->id.id.idx; 108 cbq->group = cbq->id.id.idx;
110 109