]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: spidev: Fix checkpatch issue
authorJingoo Han <jg1.han@samsung.com>
Mon, 14 Oct 2013 01:36:54 +0000 (10:36 +0900)
committerMark Brown <broonie@linaro.org>
Tue, 15 Oct 2013 12:15:52 +0000 (13:15 +0100)
Fix the following checkpatch warnings.

  WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>
  WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spidev.c

index c53556a1899a7558efb80d914e579792e1500f99..d7c6e36021e884727f9bd0a7fc858d83824d441a 100644 (file)
@@ -37,7 +37,7 @@
 #include <linux/spi/spi.h>
 #include <linux/spi/spidev.h>
 
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
 
 
 /*
@@ -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);