From 34e267d0f49ef4c54eb7b2abbb1b001fa6f26f0e Mon Sep 17 00:00:00 2001 From: Tomas Winkler Date: Sun, 16 Mar 2014 14:35:57 +0200 Subject: mei: amthif: fix checkpatch error ERROR: else should follow close brace '}' + } + else { Signed-off-by: Tomas Winkler Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mei/amthif.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/misc') diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index 2052609b167..b8deb345548 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; -- cgit v1.2.3-70-g09d2