OSDN Git Service

mei: streamline amthif write complete function
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 18 Nov 2012 13:13:17 +0000 (15:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 20:43:58 +0000 (12:43 -0800)
commit24c656e55f3985b6f5c0e2264243f7076f376193
tree11d7a03b65c9ad448f230f748f0bc19b6627dced
parentea3b5fb710c6d0b61f4bfbbc48b34b99b9c89bae
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>
drivers/misc/mei/amthif.c
drivers/misc/mei/interrupt.c
drivers/misc/mei/mei_dev.h