]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mei: drop redundant krealloc and checks in irq read
authorAlexander Usyskin <alexander.usyskin@intel.com>
Mon, 25 Jul 2016 22:06:01 +0000 (01:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2016 12:39:42 +0000 (14:39 +0200)
commitdfe5f753d06a4eaf362872a7f30aabe5f5fc968c
tree58c3cf0bc6cd8ce06e5f62c104d0fe7f7f9ccf03
parentc85dba9e87376aa8e08fa7b024df562d0fda189b
mei: drop redundant krealloc and checks in irq read

The read callback is always prepared with MTU-sized buffer and the FW
can't send more than the MTU in one message.
Checking for buffer existence and krealloc to increase receive buffer
size are redundant and may be safely discarded.

Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/interrupt.c