Skip to content

Commit

Permalink
mei: amthif: fix checkpatch error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed Mar 17, 2014
1 parent 1adc167 commit 34e267d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/misc/mei/amthif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 34e267d

Please sign in to comment.