mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
drbd: Get rid of typedef drbd_work_cb
This type is not used anywhere else. Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
parent
8f7bed7774
commit
309a834896
@ -643,11 +643,9 @@ static inline enum drbd_thread_state get_t_state(struct drbd_thread *thi)
|
|||||||
return thi->t_state;
|
return thi->t_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct drbd_work;
|
|
||||||
typedef int (*drbd_work_cb)(struct drbd_work *, int cancel);
|
|
||||||
struct drbd_work {
|
struct drbd_work {
|
||||||
struct list_head list;
|
struct list_head list;
|
||||||
drbd_work_cb cb;
|
int (*cb)(struct drbd_work *, int cancel);
|
||||||
union {
|
union {
|
||||||
struct drbd_conf *mdev;
|
struct drbd_conf *mdev;
|
||||||
struct drbd_tconn *tconn;
|
struct drbd_tconn *tconn;
|
||||||
|
Loading…
Reference in New Issue
Block a user