i2c: core: Fix spacing error by checkpatch
authorTian Tao <tiantao6@hisilicon.com>
Mon, 5 Apr 2021 08:18:42 +0000 (16:18 +0800)
committerWolfram Sang <wsa@kernel.org>
Fri, 16 Apr 2021 23:08:18 +0000 (01:08 +0200)
Fix the following checkpatch error:
 #614: FILE: drivers/i2c/i2c-core-base.c:614:
 + len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
                                                 ^
No functional changes.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/i2c-core-base.c

index 4351bf5..3478d20 100644 (file)
@@ -651,7 +651,7 @@ modalias_show(struct device *dev, struct device_attribute *attr, char *buf)
        if (len != -ENODEV)
                return len;
 
-       len = acpi_device_modalias(dev, buf, PAGE_SIZE -1);
+       len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1);
        if (len != -ENODEV)
                return len;