diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2016-04-20 23:24:55 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2016-10-07 12:36:19 -0800 |
commit | e46d425ea188473419699d017c5d9386c6a538eb (patch) | |
tree | b5f91de7720f1024ec3c0b443907ff4acee7ea63 | |
parent | 369fca80f791423d6b66ed98ae0ba4f80948d4a7 (diff) |
bcache: another closure microoptimization
-rw-r--r-- | drivers/md/bcache/closure.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/closure.h b/drivers/md/bcache/closure.h index 03f6fa7979e9..b55254b6bf74 100644 --- a/drivers/md/bcache/closure.h +++ b/drivers/md/bcache/closure.h @@ -263,7 +263,7 @@ static inline void closure_get(struct closure *cl) */ static inline void closure_init(struct closure *cl, struct closure *parent) { - memset(cl, 0, sizeof(struct closure)); + cl->fn = NULL; cl->parent = parent; if (parent) closure_get(parent); |