Commit 6e32814b authored by Li Zefan's avatar Li Zefan Committed by David S. Miller
Browse files

[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

- 'nls' isn't used and is redundant, we can retrieve this data through

- 'seq' and 'group' should be u32, as they are declared to be u32 in
other places.
Signed-off-by: default avatarLi Zefan <>
Signed-off-by: default avatarDavid S. Miller <>
parent 96a89965
...@@ -104,7 +104,6 @@ int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id ...@@ -104,7 +104,6 @@ int cn_queue_add_callback(struct cn_queue_dev *dev, char *name, struct cb_id *id
return -EINVAL; return -EINVAL;
} }
cbq->nls = dev->nls;
cbq->seq = 0; cbq->seq = 0;
cbq->group = cbq->; cbq->group = cbq->;
...@@ -132,15 +132,13 @@ struct cn_callback_data { ...@@ -132,15 +132,13 @@ struct cn_callback_data {
struct cn_callback_entry { struct cn_callback_entry {
struct list_head callback_entry; struct list_head callback_entry;
struct cn_callback *cb;
struct work_struct work; struct work_struct work;
struct cn_queue_dev *pdev; struct cn_queue_dev *pdev;
struct cn_callback_id id; struct cn_callback_id id;
struct cn_callback_data data; struct cn_callback_data data;
int seq, group; u32 seq, group;
struct sock *nls;
}; };
struct cn_ctl_entry { struct cn_ctl_entry {
Supports Markdown
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