OSDN Git Service

mei: amthif: fix checkpatch error
authorTomas Winkler <tomas.winkler@intel.com>
Sun, 16 Mar 2014 12:35:57 +0000 (14:35 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 22:59:34 +0000 (15:59 -0700)
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>
drivers/misc/mei/amthif.c

index 2052609..b8deb34 100644 (file)
@@ -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;