diff mbox series

i2c: core: Fix spacing error by checkpatch

Message ID 1617610722-11498-1-git-send-email-tiantao6@hisilicon.com
State Accepted
Headers show
Series i2c: core: Fix spacing error by checkpatch | expand

Commit Message

tiantao \(H\) April 5, 2021, 8:18 a.m. UTC
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>
---
 drivers/i2c/i2c-core-base.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wolfram Sang April 16, 2021, 11:08 p.m. UTC | #1
On Mon, Apr 05, 2021 at 04:18:42PM +0800, Tian Tao wrote:
> 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>

Applied to for-next, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/i2c-core-base.c b/drivers/i2c/i2c-core-base.c
index 7039b8a..e4d4a34 100644
--- a/drivers/i2c/i2c-core-base.c
+++ b/drivers/i2c/i2c-core-base.c
@@ -612,7 +612,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;