aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2014-03-16 08:35:57 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 18:59:34 -0400
commit34e267d0f49ef4c54eb7b2abbb1b001fa6f26f0e (patch)
tree1d03bc28e79652e78ebe833bed3778fffae5cc4c
parent1adc16743313688ba69d19d9a445c60affc66ef9 (diff)
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>
-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,
247 if (copy_to_user(ubuf, cb->response_buffer.data + *offset, length)) { 247 if (copy_to_user(ubuf, cb->response_buffer.data + *offset, length)) {
248 dev_dbg(&dev->pdev->dev, "failed to copy data to userland\n"); 248 dev_dbg(&dev->pdev->dev, "failed to copy data to userland\n");
249 rets = -EFAULT; 249 rets = -EFAULT;
250 } 250 } else {
251 else {
252 rets = length; 251 rets = length;
253 if ((*offset + length) < cb->buf_idx) { 252 if ((*offset + length) < cb->buf_idx) {
254 *offset += length; 253 *offset += length;