summaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/amthif.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-03-16 13:35:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 23:59:34 +0100
commit34e267d0f49ef4c54eb7b2abbb1b001fa6f26f0e (patch)
tree1d03bc28e79652e78ebe833bed3778fffae5cc4c /drivers/misc/mei/amthif.c
parentmei: client.h fix checkpatch errors (diff)
downloadlinux-34e267d0f49ef4c54eb7b2abbb1b001fa6f26f0e.tar.xz
linux-34e267d0f49ef4c54eb7b2abbb1b001fa6f26f0e.zip
mei: amthif: fix checkpatch error
ERROR: else should follow close brace '}' + } + else { Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mei/amthif.c')
-rw-r--r--drivers/misc/mei/amthif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 2052609b167a..b8deb3455480 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -247,8 +247,7 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,
if (copy_to_user(ubuf, cb->response_buffer.data + *offset, length)) {
dev_dbg(&dev->pdev->dev, "failed to copy data to userland\n");
rets = -EFAULT;
- }
- else {
+ } else {
rets = length;
if ((*offset + length) < cb->buf_idx) {
*offset += length;