From: Jingoo Han Date: Mon, 14 Oct 2013 01:36:54 +0000 (+0900) Subject: spi: spidev: Fix checkpatch issue X-Git-Tag: upstream/snapshot3+hdmi~4012^2~20^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95c63cfba777bf2154565abbdc61ea970aaa632c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git spi: spidev: Fix checkpatch issue Fix the following checkpatch warnings. WARNING: Use #include instead of WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Jingoo Han Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index c53556a..d7c6e36 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -37,7 +37,7 @@ #include #include -#include +#include /* @@ -206,9 +206,9 @@ spidev_write(struct file *filp, const char __user *buf, mutex_lock(&spidev->buf_lock); missing = copy_from_user(spidev->buffer, buf, count); - if (missing == 0) { + if (missing == 0) status = spidev_sync_write(spidev, count); - } else + else status = -EFAULT; mutex_unlock(&spidev->buf_lock);