summaryrefslogtreecommitdiff
path: root/drivers/misc/mei/main.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2012-12-25 19:05:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-07 10:31:27 -0800
commit438763f37eb9664b6372bdfee990f8c33acdc63c (patch)
tree71f2feab0d7b91cfd28c538c2943a8d8fe000c96 /drivers/misc/mei/main.c
parentd1c3ed669a2d452cacfb48c2d171a1f364dae2ed (diff)
downloadkernel-common-438763f37eb9664b6372bdfee990f8c33acdc63c.tar.gz
kernel-common-438763f37eb9664b6372bdfee990f8c33acdc63c.tar.bz2
kernel-common-438763f37eb9664b6372bdfee990f8c33acdc63c.zip
mei: drop redundant length parameter from mei_write_message function
The length is already part of the message header and it is validated before the function call Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/main.c')
-rw-r--r--drivers/misc/mei/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c
index 43fb52ff98ad..b281c235d898 100644
--- a/drivers/misc/mei/main.c
+++ b/drivers/misc/mei/main.c
@@ -554,8 +554,7 @@ static ssize_t mei_write(struct file *file, const char __user *ubuf,
mei_hdr.reserved = 0;
dev_dbg(&dev->pdev->dev, "call mei_write_message header=%08x.\n",
*((u32 *) &mei_hdr));
- if (mei_write_message(dev, &mei_hdr,
- write_cb->request_buffer.data, mei_hdr.length)) {
+ if (mei_write_message(dev, &mei_hdr, write_cb->request_buffer.data)) {
rets = -ENODEV;
goto err;
}