提交 34e267d0 编写于 作者: T Tomas Winkler 提交者: Greg Kroah-Hartman

mei: amthif: fix checkpatch error

ERROR: else should follow close brace '}'
+	}
+	else {
Signed-off-by: NTomas Winkler <tomas.winkler@intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 1adc1674
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册