diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2012-11-18 08:13:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 15:43:58 -0500 |
commit | 24c656e55f3985b6f5c0e2264243f7076f376193 (patch) | |
tree | 11d7a03b65c9ad448f230f748f0bc19b6627dced /drivers/misc/mei/interrupt.c | |
parent | ea3b5fb710c6d0b61f4bfbbc48b34b99b9c89bae (diff) |
mei: streamline amthif write complete function
Rename the function mei_amthif_irq_process_completed
to mei_amthif_irq_write_complete
Remove cl from the parameter list as it
can be extracted from cb block.
Extract the common flow from if statements
and document the logic properly
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/interrupt.c')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 85e272258ff1..d30db38d6188 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -1046,8 +1046,8 @@ static int mei_irq_thread_write_handler(struct mei_cl_cb *cmpl_list, | |||
1046 | cl->host_client_id); | 1046 | cl->host_client_id); |
1047 | continue; | 1047 | continue; |
1048 | } | 1048 | } |
1049 | ret = mei_amthif_irq_process_completed(dev, slots, pos, | 1049 | ret = mei_amthif_irq_write_complete(dev, slots, |
1050 | cl, cmpl_list); | 1050 | pos, cmpl_list); |
1051 | if (ret) | 1051 | if (ret) |
1052 | return ret; | 1052 | return ret; |
1053 | 1053 | ||