diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2013-11-14 17:32:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-14 19:32:21 -0500 |
commit | 16735d022f72b20ddbb2274b8e109f69575e9b2b (patch) | |
tree | f567c7dfff06ae18899feab7cd8a79a7a0f7be40 /drivers/block/cciss.c | |
parent | c32f74ab2872994bc8336ed367313da3139350ca (diff) |
tree-wide: use reinit_completion instead of INIT_COMPLETION
Use this new function to make code more comprehensible, since we are
reinitialzing the completion, not initializing.
[akpm@linux-foundation.org: linux-next resyncs]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Linus Walleij <linus.walleij@linaro.org> (personally at LCE13)
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 0c004ac05811..b35fc4f5237c 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -2808,7 +2808,7 @@ resend_cmd2: | |||
2808 | /* erase the old error information */ | 2808 | /* erase the old error information */ |
2809 | memset(c->err_info, 0, sizeof(ErrorInfo_struct)); | 2809 | memset(c->err_info, 0, sizeof(ErrorInfo_struct)); |
2810 | return_status = IO_OK; | 2810 | return_status = IO_OK; |
2811 | INIT_COMPLETION(wait); | 2811 | reinit_completion(&wait); |
2812 | goto resend_cmd2; | 2812 | goto resend_cmd2; |
2813 | } | 2813 | } |
2814 | 2814 | ||
@@ -3669,7 +3669,7 @@ static int add_to_scan_list(struct ctlr_info *h) | |||
3669 | } | 3669 | } |
3670 | } | 3670 | } |
3671 | if (!found && !h->busy_scanning) { | 3671 | if (!found && !h->busy_scanning) { |
3672 | INIT_COMPLETION(h->scan_wait); | 3672 | reinit_completion(&h->scan_wait); |
3673 | list_add_tail(&h->scan_list, &scan_q); | 3673 | list_add_tail(&h->scan_list, &scan_q); |
3674 | ret = 1; | 3674 | ret = 1; |
3675 | } | 3675 | } |